[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nginx
Subject:    Re: nginx removes double slashes
From:       Gregory Edigarov <edigarov () qarea ! com>
Date:       2014-12-30 17:49:36
Message-ID: 54A2E5B0.1070702 () qarea ! com
[Download RAW message or body]

On 12/29/2014 06:00 PM, Maxim Dounin wrote:
> Hello!
> 
> On Mon, Dec 29, 2014 at 01:04:06PM +0200, Gregory Edigarov wrote:
> 
> > 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?
> http://nginx.org/r/merge_slashes
Thank you. Just an  unlucky name for the option )))
I thought it's "preserve_slashes" and didn't find it.

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic