Some situation like, this moment, I got your email....
On Wed, Jul 8, 2009 at 2:09 AM, Edho P Arief wrote:
> On Wed, Jul 8, 2009 at 12:47 AM, Leechael Yim wrote:
> >
> > if (-f $request_filename) {
> > fastcgi_pass 127.0.0.1:9000;
> > }
> >
> > OR:
> >
> > if (!-f $request_filename) {
> > return 404;
> > }
> > fastcgi_pass 127.0.0.1:9000;
> >
> > The first one is what I current used with my Nginx.
>
>
> location ~ \.php$ {
> try_files $uri @404;
> ...
> }
>
> location @404 {
> return 404; # or custom error page
> }
>
> when will people stop using !-f $request_filename...
>
> --
> O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
>
>
--
Twitter: http://www.twitter.com/leechael