Hi, I came here form the IP Geolocation Views & Maps module, which upon installation recommend this module.

I am developing a site on Pantheon which uses nginx webservers, thus doesn't have .htcaccess file where to write your rewrite rules.

The question is: is the module useful in any way even if I don't/can't apply the rewrite rules advised in your configuration page?

EDIT: I found out the old issues but the implications weren't clear to me. In the settings I selected "Other" but nothing new shows up. Is it ok?

Comments

kopeboy’s picture

Issue summary: View changes
markhalliwell’s picture

Title: Can I use this module on Pantheon (without .htaccess)? » Provide Nginx rewrites
Version: 7.x-1.0 » 7.x-2.x-dev
Component: Miscellaneous » Code
Category: Support request » Feature request

I had been using Nginx locally actually for a while and have some of my own. They are, however, manual rewrites as I had to account for language prefixes. I would much prefer a dynamic rewrite instead.

Unfortunately I recently upgraded my laptop and now back to a normal MAMP stack. I will keep this open as I will likely revisit it one day in the future (if someone doesn't beat me to it).

As far as Pantheon goes, I'm not sure they have support for this (highly unlikely). Plus, we'd likely need to come up with something here first. Once that happens, I can easily ping someone over there to discuss the possibility to add this support. They have been highly accommodating in the past.

markhalliwell’s picture

Related issues from searching issue queue

travisc’s picture

edit: already covered by other threads

mrded’s picture

To make it work - add following into your NGINX config:

location ^~ /js/ {
  location ~* ^/js/ {
    rewrite ^/(.*)$ /js.php?q=$1 last;
  }
}

I also spoke with Pantheon support and they told me that they have a standardised nginx.conf that runs across the platform, so it can't be changed.
However it can be requested as a feature for all sites on the platform but, in case they receive multiple requests from different clients.

  • markcarver committed 12fc7d5 on 7.x-2.x
    Issue #2318527 by kopeboy, markcarver: Provide Nginx rewrites
    
markhalliwell’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

nottaken’s picture

I'm looking at the Pantheon platform and ran into this issue. Any suggested solutions to make it work on Pantheon?