Welcome! Log In Create A New Profile

Advanced

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

September 04, 2010 02:26AM
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 mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

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

Vladislav V. Prodan September 03, 2010 08:56PM

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

Alex Vorona September 04, 2010 02:18AM

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

Igor Sysoev September 04, 2010 02:26AM

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

Vladislav V. Prodan September 04, 2010 05:12AM

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

Igor Sysoev September 04, 2010 05:30AM

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

Vladislav V. Prodan September 04, 2010 05:58AM

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

Igor Sysoev September 04, 2010 08:42AM

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

Vladislav V. Prodan September 04, 2010 09:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 305
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready