displaying standard 404 page, if php file is not found
Igor Sysoev
is at rambler-co.ru
Wed Jul 29 21:17:04 MSD 2009
On Wed, Jul 29, 2009 at 06:25:28PM +0200, Samuel Vogel wrote:
> Am 29.07.09 18:17, schrieb Piotr Sikora:
> >> try_files $uri @404;
> >
> >Try using "error_page" instead of "try_files".
> >
> >AFAIK "try_files" is supposed to work static files, not FastCGI / proxy.
> But the file does exist, shouldn't try_files be able to check that?
try_files is able to check. You just need to set valid root in
location ~ \.php$ {
it may be
root /var/www/domain/www;
or
root /www;
depending on your setup.
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list