spaces in URI

Igor Sysoev igor at
Tue Sep 28 21:26:19 MSD 2010

On Tue, Sep 28, 2010 at 01:24:25PM -0400, cgarver wrote:

> Thanks, but when I try that I cannot get nginx to start.
> >/etc/init.d/nginx restart
> [emerg]: "proxy_pass" may not have URI part in location given by regular
> expression, or inside named location, or inside the "if" statement, or
> inside the "limit_except" block in /etc/nginx/national_sites.conf:4
> configuration file /etc/nginx/nginx.conf test failed

You should use

      location ^~ /us {

Igor Sysoev

More information about the nginx mailing list