Some situation like, this moment, I got your email....<br><br><div class="gmail_quote">On Wed, Jul 8, 2009 at 2:09 AM, Edho P Arief <span dir="ltr">&lt;<a href="mailto:edhoprima@gmail.com">edhoprima@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Wed, Jul 8, 2009 at 12:47 AM, Leechael Yim&lt;<a href="mailto:yanleech@gmail.com">yanleech@gmail.com</a>&gt; wrote:<br>


&gt; &lt;code lang=&quot;nginx&quot;&gt;<br>
&gt; if (-f $request_filename) {<br>
&gt;     fastcgi_pass <a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a>;<br>
&gt; }<br>
&gt; &lt;/code&gt;<br>
&gt; OR:<br>
&gt; &lt;code lang=&quot;nginx&quot;&gt;<br>
&gt; if (!-f $request_filename) {<br>
&gt;     return 404;<br>
&gt; }<br>
&gt; fastcgi_pass <a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a>;<br>
&gt; &lt;/code&gt;<br>
&gt; The first one is what I current used with my Nginx.<br>
<br>
<br>
</div>location ~ \.php$ {<br>
  try_files $uri @404;<br>
  ...<br>
}<br>
<br>
location @404 {<br>
  return 404; # or custom error page<br>
}<br>
<br>
when will people stop using !-f $request_filename...<br>
<font color="#888888"><br>
--<br>
O&lt; ascii ribbon campaign - stop html mail - <a href="http://www.asciiribbon.org" target="_blank">www.asciiribbon.org</a><br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Twitter: <a href="http://www.twitter.com/leechael">http://www.twitter.com/leechael</a><br>