Welcome! Log In Create A New Profile

Advanced

404 errors are logged in access log

Posted by ashbey 
404 errors are logged in access log
September 06, 2009 08:24AM
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.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 68
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready