try_files and proxy_pass
Walter Cruz
walter.php at gmail.com
Tue Aug 18 06:15:58 MSD 2009
I found the problem: I was putting a final slash in the proxy_pass ;)
On Mon, Aug 17, 2009 at 11:09 PM, Jeff Waugh <jdub at bethesignal.org> wrote:
> <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
>
>
--
[]'
- Walter
waltercruz.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090817/bd6c64ec/attachment.html>
More information about the nginx
mailing list