Welcome! Log In Create A New Profile

Advanced

Re: displaying standard 404 page, if php file is not found

Samuel Vogel
July 29, 2009 02:00PM
Am 29.07.09 19:17, schrieb Igor Sysoev:
> 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.
>
Thanks, your post solved the problem! The problem was, that of course
root was only set for location /, and not in the php location.
Moved it to the server {} definition and everything works fine!

Regards,
Samy
Subject Author Posted

displaying standard 404 page, if php file is not found

Samuel Vogel July 29, 2009 10:03AM

Re: displaying standard 404 page, if php file is not found

edogawaconan July 29, 2009 10:12AM

Re: displaying standard 404 page, if php file is not found

Samuel Vogel July 29, 2009 10:53AM

Re: displaying standard 404 page, if php file is not found

Igor Sysoev July 29, 2009 11:00AM

Re: displaying standard 404 page, if php file is not found

Samuel Vogel July 29, 2009 11:26AM

Re: displaying standard 404 page, if php file is not found

edogawaconan July 29, 2009 11:39AM

Re: displaying standard 404 page, if php file is not found

Samuel Vogel July 29, 2009 12:12PM

Re: displaying standard 404 page, if php file is not found

edogawaconan July 29, 2009 01:14PM

Re: displaying standard 404 page, if php file is not found

Samuel Vogel July 29, 2009 01:25PM

Re: displaying standard 404 page, if php file is not found

Nuno Magalhães July 29, 2009 01:43PM

Re: displaying standard 404 page, if php file is not found

Piotr Sikora July 29, 2009 12:17PM

Re: displaying standard 404 page, if php file is not found

Samuel Vogel July 29, 2009 12:25PM

Re: displaying standard 404 page, if php file is not found

Igor Sysoev July 29, 2009 01:17PM

Re: displaying standard 404 page, if php file is not found

Samuel Vogel July 29, 2009 02:00PM

Re: displaying standard 404 page, if php file is not found

Nuno Magalhães July 29, 2009 10:57AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 239
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready