Welcome! Log In Create A New Profile


404 errors are logged in access log

Posted by ashbey 
404 errors are logged in access log
September 06, 2009 08:24AM

Below is the code of my Nginx config file related to error_page settings:

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;


In 404.php I am setting 404 header

header("HTTP/1.0 404 Not Found");

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?


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: 53
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