Welcome! Log In Create A New Profile

Advanced

nginx removes double slashes

Gregory Edigarov
December 29, 2014 06:06AM
Hello everybody,

perhaps I am doing something wrong:

location /njs/ {
rewrite /njs/(.*)$ /$1 break;
proxy_redirect off;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For
$proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:4006;

}
calling this
http://[hostname]/facebook/bitly/http%3A%2F%2F[hostname]%2Fbeth-buczynski%2Fdiy-ways-to-stay-warm-in-winter%2F

and I definitely see that to my application it comes like:
http:/[hostname]/beth-buczynski/diy-ways-to-stay-warm-in-winter/
note the single '/', when I need '//'

Is there any way to handle it?
--
With best regards,
Gregory Edigarov

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx removes double slashes

Gregory Edigarov December 29, 2014 06:06AM

Re: nginx removes double slashes

Gregory Edigarov December 29, 2014 07:16AM

Re: nginx removes double slashes

B.R. December 29, 2014 10:48AM

Re: nginx removes double slashes

Maxim Dounin December 29, 2014 11:02AM

Re: nginx removes double slashes

Gregory Edigarov December 30, 2014 12:52PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 269
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready