atom feed7 messages in ru.sysoev.nginxRe: Problem with double slashes in UR...
FromSent OnAttachments
alexkJul 27, 2010 5:36 am 
Igor SysoevJul 27, 2010 5:39 am 
alexkJul 27, 2010 7:33 am 
alexkSep 10, 2010 5:04 am 
alexkSep 10, 2010 5:11 am 
Igor SysoevSep 10, 2010 5:15 am 
alexkSep 16, 2010 4:01 pm 
Subject:Re: Problem with double slashes in URL when using nginx as proxy
From:Igor Sysoev (ig@sysoev.ru)
Date:Sep 10, 2010 5:15:39 am
List:ru.sysoev.nginx

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; }