Oh, and I remembered why I didn&#39;t use that (much cleaner) syntax like what you provided. <br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
&quot;proxy_pass&quot; may not have URI part in location given by regular expression, or inside the &quot;if&quot; statement, or inside the &quot;limit_except&quot; block</blockquote><div><br></div>-Erik<br><br><div><span class="gmail_quote">
On 4/20/07, <b class="gmail_sendername">Erik Karulf</b> &lt;<a href="mailto:erik@karulf.com">erik@karulf.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br><div><span class="q"><span class="gmail_quote">On 4/20/07, <b class="gmail_sendername">Igor Sysoev</b> &lt;<a href="mailto:is@rambler-co.ru" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">is@rambler-co.ru
</a>&gt; wrote:</span></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><span class="q">
On Mon, Apr 16, 2007 at 09:20:46PM -0500, Erik Karulf wrote:<br><br></span><span class="q">&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if ($request_filename !~* &quot;^.+.(php|php3)$&quot;) {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp; /www/forums.example.com/ &lt;<a href="http://arcade.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://arcade.com/
</a>&gt;;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; expires&nbsp;&nbsp;&nbsp;&nbsp;30d;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

You should use<span class="q"><br><br>&nbsp;&nbsp;&nbsp;&nbsp; location ~ .\.(php|php3)$ {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;proxy_pass <a href="http://127.0.0.1:8080/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://127.0.0.1:8080/</a>
;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;expires&nbsp;&nbsp;&nbsp;&nbsp;off;<br>&nbsp;&nbsp;&nbsp;&nbsp; }</span></blockquote><div><br>Hi Igor<br>Thanks for the help (and amazing webserver). I am trying (and perhaps I am misinterpreting the variable) to route based on the name of the file on the server side. The result is the server will notice that the file being called when you go to 
<a href="http://forums.example.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://forums.example.com/</a> is actually /www/forums.example.com/index.php (through the index argument above). The goal is that I have a bunch of subdirectories that have 
index.php&#39;s, I would prefer not having to set those locations statically into the config file and instead have a regular expression evaluated per request. 
<br>I do not know if this is possible, but it is my goal.<br><br>Cheers!<br>-Erik<br></div><br></div><br>
</blockquote></div><br>