# Error log file

**URL:** <https://www.ruby-forum.com/t/error-log-file/215465>\
**Category:** NGINX\
**Created:** [January 5, 2012, 7:34am UTC](https://www.ruby-forum.com/t/error-log-file/215465 "2012-01-05T07:34:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [January 5, 2012, 7:34am UTC](https://www.ruby-forum.com/t/error-log-file/215465/1 "2012-01-05T07:34:15Z")

</div>

Hello,

Using Nginx 1.0.11, I changed the error log file in my configuration to  
/var/log/nginx.error.log.  
The new log file gets filled as it is supposed to be, but the old file  
/nginx-repo/logs/error.log keeps getting recreated.

I would add that I checked the configuration so there is no conflicting  
entry.

## Btw, why does nginx doesn’t use the ‘standard’ repos /var/log for the logs and /var/run for the PID file by default? It adds to the entropy…

_B. R._

---

<div class="post-metadata">

**Author:** ![B.R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3be4f8/32.png) [@B.R](https://www.ruby-forum.com/u/B.R)\
**Post date:** [January 12, 2012, 7:45pm UTC](https://www.ruby-forum.com/t/error-log-file/215465/2 "2012-01-12T19:45:04Z")

</div>

## I don’t know if the message was delivered the first time.

_B. R._
