Re: Странная работа error_log

Igor Sysoev igor на sysoev.ru
Сб Сен 4 10:25:53 MSD 2010


On Sat, Sep 04, 2010 at 03:52:24AM +0300, Vladislav V. Prodan wrote:

> Имеем два тазика с фряхой и nginx.
> 
> user  www;
> worker_processes  2;
> error_log   /var/log/nginx/error.log;
> 
> pid        /var/run/nginx.pid;
> 
> events {
>     worker_connections  10000;
>     use kqueue;
> }
> 
> http {
> ...
> }
> 
> В общем nginx игнорирует error_log и при  service nginx reload
> упорно начинает писать в  /var/log/nginx-error.log
> 2010/08/27 20:12:03 [emerg] 70116#0: "output_buffers" directive is
> duplicate in /usr/local/etc/nginx/nginx.conf:55
> 2010/08/27 20:12:30 [warn] 70133#0: duplicate MIME type "text/html" in
> /usr/local/etc/nginx/nginx.conf:49
> 2010/08/27 20:23:57 [warn] 70529#0: duplicate MIME type "text/html" in
> /usr/local/etc/nginx/nginx.conf:49
> 2010/08/27 20:32:29 [warn] 70846#0: duplicate MIME type "text/html" in
> /usr/local/etc/nginx/nginx.conf:49
> 2010/08/27 21:58:16 [warn] 2343#0: duplicate MIME type "text/html" in
> /usr/local/etc/nginx/nginx.conf:49
> 2010/08/27 21:58:16 [warn] 2344#0: duplicate MIME type "text/html" in
> /usr/local/etc/nginx/nginx.conf:49
> 2010/09/03 01:31:08 [warn] 26324#0: duplicate MIME type "text/html" in
> /usr/local/etc/nginx/nginx.conf:49
> 2010/09/04 03:34:19 [warn] 77020#0: duplicate MIME type "text/html" in
> /usr/local/etc/nginx/nginx.conf:49
> 2010/09/04 03:34:54 [warn] 77051#0: duplicate MIME type "text/html" in
> /usr/local/etc/nginx/nginx.conf:49
> 2010/09/04 03:35:21 [warn] 77138#0: duplicate MIME type "text/html" in
> /usr/local/etc/nginx/nginx.conf:49
> 
> 
> Причем в это время в  /var/log/nginx/error.log  нормально пишутся ошибки
> класса [error]
> 
> Как отучить nginx писать в /var/log/nginx-error.log ?
> 
> 
> # nginx -V
> nginx version: nginx/0.7.67
> TLS SNI support enabled
> configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I
> /usr/local/include' --with-ld-opt='-L /usr/local/lib'
> --conf-path=/usr/local/etc/nginx/nginx.conf
> --sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid
> --error-log-path=/var/log/nginx-error.log --user=www --group=www

./configure --error-log-path=/var/log/nginx/error.log ...


-- 
Игорь Сысоев
http://sysoev.ru



Подробная информация о списке рассылки nginx-ru