try_files and proxy_pass

Jeff Waugh jdub at bethesignal.org
Tue Aug 18 06:09:31 MSD 2009


<quote who="Walter Cruz">

> Hi! I would like to use a setting like that:
> 
>    location / {
>        try_files $uri $uri/ @proxy;
>    }
> 
>    location @proxy {
>        proxy_pass http://127.0.0.1:8089;
>    }
> 
> With nginx serving static content and apache serving dinamic content. With
> that setting. I got a error:
> 
> "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

location @proxy {
    internal;
    proxy_pass http://127.0.0.1:8089;
}

- Jeff

-- 
linux.conf.au 2010: Wellington, NZ                http://www.lca2010.org.nz/
 
                 "No shit, sherlock at holmes.com." - Mr. Bad





More information about the nginx mailing list