Re: Request path not passed to proxy when $scheme is used in proxy_pass URI

2013-03-24 Thread Ben Hoskings
Ahh, I've found the answer in the proxy_pass documentation. http://wiki.nginx.org/HttpProxyModule#proxy_pass -- "A special case is using variables in the proxy_pass statement: The requested URL is not used and you are fully responsible to construct the target URL yourself." Surprising, but now I

Request path not passed to proxy when $scheme is used in proxy_pass URI

2013-03-23 Thread Ben Hoskings
Hi all, I've found a strange behaviour with proxy_pass. I've reduced a simple vhost that reproduces it: server { listen 127.0.0.1:8000; location / { proxy_pass $scheme://127.0.0.1:9000/; } } A listener on localhost:9000 receives a request, but for '/' instead of the correct path. For ex