<br><br><div><span class="gmail_quote">On 4/20/07, <b class="gmail_sendername">Igor Sysoev</b> &lt;<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</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;">
On Mon, Apr 16, 2007 at 09:20:46PM -0500, Erik Karulf wrote:<br><br>&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/">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;}</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<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/">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; }</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/">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>