September 10, 2010 08:24AM
On Fri, Sep 10, 2010 at 08:05:13AM -0400, alexk wrote:

> Strange,
>
> When post is specified in listen directive:
>
> server {
> listen 80;
> ...
> }
>
> it works well with double slashes.
>
> But when using domain name in listen directive
>
> server {
> listen *****.com;
> ...
> }
>
> it removes double slashes.

You probably proxy using

location / {
proxy_pass http://backend/;
}

You need ot remove the last "/", then nginx will use a client original
request with double slashes:

location / {
proxy_pass http://backend;
}


--
Igor Sysoev
http://sysoev.ru/en/

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

Problem with double slashes in URL when using nginx as proxy

alexk July 27, 2010 08:37AM

Re: Problem with double slashes in URL when using nginx as proxy

Igor Sysoev July 27, 2010 08:44AM

Re: Problem with double slashes in URL when using nginx as proxy

alexk July 27, 2010 10:33AM

Re: Problem with double slashes in URL when using nginx as proxy

alexk September 10, 2010 08:05AM

Re: Problem with double slashes in URL when using nginx as proxy

alexk September 10, 2010 08:12AM

Re: Problem with double slashes in URL when using nginx as proxy

Igor Sysoev September 10, 2010 08:24AM

Re: Problem with double slashes in URL when using nginx as proxy

alexk September 16, 2010 07:02PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 103
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