I found the problem: I was putting a final slash in the proxy_pass ;)<br><br><div class="gmail_quote">On Mon, Aug 17, 2009 at 11:09 PM, Jeff Waugh <span dir="ltr"><<a href="mailto:jdub@bethesignal.org">jdub@bethesignal.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><quote who="Walter Cruz"><br>
<div class="im"><br>
> Hi! I would like to use a setting like that:<br>
><br>
> location / {<br>
> try_files $uri $uri/ @proxy;<br>
> }<br>
><br>
> location @proxy {<br>
> proxy_pass <a href="http://127.0.0.1:8089" target="_blank">http://127.0.0.1:8089</a>;<br>
> }<br>
><br>
> With nginx serving static content and apache serving dinamic content. With<br>
> that setting. I got a error:<br>
><br>
> "proxy_pass" may not have URI part in location given by regular expression,<br>
> or inside named location, or inside the "if" statement, or inside the<br>
> "limit_except" block in<br>
<br>
</div>location @proxy {<br>
internal;<br>
<div class="im"> proxy_pass <a href="http://127.0.0.1:8089" target="_blank">http://127.0.0.1:8089</a>;<br>
}<br>
<br>
</div>- Jeff<br>
<font color="#888888"><br>
--<br>
<a href="http://linux.conf.au" target="_blank">linux.conf.au</a> 2010: Wellington, NZ <a href="http://www.lca2010.org.nz/" target="_blank">http://www.lca2010.org.nz/</a><br>
<br>
"No shit, <a href="mailto:sherlock@holmes.com">sherlock@holmes.com</a>." - Mr. Bad<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>[]'<br>- Walter<br><a href="http://waltercruz.com">waltercruz.com</a><br>