Welcome! Log In Create A New Profile

Advanced

Nginx case insensitive URL and rewrite URL?

December 17, 2014 09:15AM
I have Nginx configured as reverse proxy

server {
listen 80;
server_name www.pluto.com;
location / {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:8080;
}
}
I need that the URL request from any combination of FOLDER1 (case insensitive) is rewrite from URL

http://www.pippo.com/FOLDER1/etc..etc..etc..
to (always lowercase folder1)

http://12.0.0.1/folder1/etc..etc..etc...
where etc..etc..etc. = anything that I need to keep

How can I do?
Subject Author Posted

Nginx case insensitive URL and rewrite URL?

grydan December 17, 2014 09:15AM

Re: Nginx case insensitive URL and rewrite URL?

itpp2012 December 17, 2014 10:03AM

Re: Nginx case insensitive URL and rewrite URL?

grydan December 17, 2014 10:23AM

Re: Nginx case insensitive URL and rewrite URL?

itpp2012 December 17, 2014 10:37AM

Re: Nginx case insensitive URL and rewrite URL?

grydan December 17, 2014 10:47AM

Re: Nginx case insensitive URL and rewrite URL?

Francis Daly December 17, 2014 12:02PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 70
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready