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">&lt;<a href="mailto:jdub@bethesignal.org">jdub@bethesignal.org</a>&gt;</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;">&lt;quote who=&quot;Walter Cruz&quot;&gt;<br>
<div class="im"><br>
&gt; Hi! I would like to use a setting like that:<br>
&gt;<br>
&gt;    location / {<br>
&gt;        try_files $uri $uri/ @proxy;<br>
&gt;    }<br>
&gt;<br>
&gt;    location @proxy {<br>
&gt;        proxy_pass <a href="http://127.0.0.1:8089" target="_blank">http://127.0.0.1:8089</a>;<br>
&gt;    }<br>
&gt;<br>
&gt; With nginx serving static content and apache serving dinamic content. With<br>
&gt; that setting. I got a error:<br>
&gt;<br>
&gt; &quot;proxy_pass&quot; may not have URI part in location given by regular expression,<br>
&gt; or inside named location, or inside the &quot;if&quot; statement, or inside the<br>
&gt; &quot;limit_except&quot; 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>
                 &quot;No shit, <a href="mailto:sherlock@holmes.com">sherlock@holmes.com</a>.&quot; - Mr. Bad<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>[]&#39;<br>- Walter<br><a href="http://waltercruz.com">waltercruz.com</a><br>