Converting subdomain to path component without redirect ?

Francis Daly francis at
Sun May 5 08:03:59 UTC 2013

On Sun, May 05, 2013 at 02:21:58AM +0100, henrique matias wrote:
> My first try was to change my location / { } to proxy pass to another
> language, so i could try "the backend" as you said, but it actually didn't
> work, i got:
> [emerg] "proxy_pass" cannot have URI part in location given by regular
> expression, or inside named location, or inside "if" statement, or inside
> "limit_except" block in /etc/nginx/nginx.conf:79

Unless I'm missing something, that configuration should not lead to that
error message.

The new test server{} block should be very small, with every line

If you show exactly what you did, what you got, and what you expected
to get, others will have a better chance of offering help.

Francis Daly        francis at

More information about the nginx mailing list