Hi,
Below is the code of my Nginx config file related to error_page settings:
[code]
access_log /home/public_html/*****/log/access.log;
error_log /home/public_html/*****/log/error.log;
error_page 404 /errors/404.php;
if (!-e $request_filename)
{
rewrite ^/(.*)$ /errors/404.php?q=$1 last;
}
[/code]
In 404.php I am setting 404 header
[code]
header("HTTP/1.0 404 Not Found");
[/code]
All the 404 errors are written in access.log. Should not they be written in error.log?
Other than this everything is working great.
Can someone help me with this?
Thanks
Edited 1 time(s). Last edit at 09/06/2009 08:25AM by ashbey.