Nginx Proxy Returns Odd Results

Jonathan Matthews contact at jpluscplusm.com
Tue May 22 17:59:01 UTC 2012


On 22 May 2012 12:18, Maxim Dounin <mdounin at mdounin.ru> wrote:
> The problem is that you are removing request arguments in "location
> ~ /ws/(.*)".  Use this instead:
>
>    location /ws/ {
>        proxy_pass http://127.0.0.1:8080/;
>    }
>
>    location / {
>        proxy_pass http://127.0.0.1:8080/;
>    }

Are those proxy_pass trailing slashes correct?
Don't they remove the path so that the upstream sees all requests on
the root URI?

-- 
Jonathan Matthews
Oxford, London, UK
http://www.jpluscplusm.com/contact.html



More information about the nginx mailing list