# Error.log file doesn't log "404 File Not Found" errors

**URL:** <https://www.ruby-forum.com/t/error-log-file-doesnt-log-404-file-not-found-errors/245731>\
**Category:** NGINX\
**Created:** [July 4, 2013, 12:28am UTC](https://www.ruby-forum.com/t/error-log-file-doesnt-log-404-file-not-found-errors/245731 "2013-07-04T00:28:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sadaf\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/858c86/32.png) [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Post date:** [July 4, 2013, 12:28am UTC](https://www.ruby-forum.com/t/error-log-file-doesnt-log-404-file-not-found-errors/245731/1 "2013-07-04T00:28:06Z")

</div>

My error.log doesn’t show any request/log based on .php requests,  
i.e. when I type /test.php (file doesn’t exist), error.log doesn’t show  
anything regarding it.  
Shouldn’t nginx log this request inside error.log as 404 Not Found?  
Nginx run with php-fpm and everything works ok with php.  
Any idea?

---

<div class="post-metadata">

**Author:** ![BSD\_Kazakhstan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/439d5e/32.png) [@BSD\_Kazakhstan](https://www.ruby-forum.com/u/BSD_Kazakhstan)\
**Post date:** [July 4, 2013, 2:28pm UTC](https://www.ruby-forum.com/t/error-log-file-doesnt-log-404-file-not-found-errors/245731/2 "2013-07-04T14:28:04Z")

</div>

On 3 July 2013 23:27, BSD Kazakhstan [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> My error.log doesn’t show any request/log based on .php requests,  
> i.e. when I type /test.php (file doesn’t exist), error.log doesn’t show  
> anything regarding it.  
> Shouldn’t nginx log this request inside error.log as 404 Not Found?

No. 404s are logged in whatever access\_log you have configured.

Generally, any new lines in error.log represent a problem that the  
hoster (sysadmin/app-dev/etc) should look at.  
A 404 is (or can be) a client-side error, hence should be logged  
elsewhere. Which it is.

J
