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

Vladislav V. Prodan universite на ukr.net
Сб Сен 4 04:52:24 MSD 2010


Имеем два тазика с фряхой и 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
--with-debug --with-ipv6
--http-client-body-temp-path=/var/tmp/nginx/client_body_temp
--http-proxy-temp-path=/var/tmp/nginx/proxy_temp
--http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp
--http-log-path=/var/log/nginx-access.log
--add-module=/usr/ports/www/nginx/work/nginx-accesskey-2.0.3
--add-module=/usr/ports/www/nginx/work/ngx_http_auth_request_module-0.2
--add-module=/usr/ports/www/nginx/work/ngx_echo_module-0.30
--add-module=/usr/ports/www/nginx/work/ngx_headers_more_module-0.10
--add-module=/usr/ports/www/nginx/work/nginx_eval_module-1.0.1
--add-module=/usr/ports/www/nginx/work/ngx_http_gunzip_filter_module-0.3
--with-http_flv_module --with-http_gzip_static_module
--with-http_image_filter_module
--add-module=/usr/ports/www/nginx/work/nginx-notice-2
--with-http_perl_module --with-http_realip_module
--add-module=/usr/ports/www/nginx/work/ngx_http_response-0.3
--with-http_ssl_module --with-http_stub_status_module
--with-http_sub_module
--add-module=/usr/ports/www/nginx/work/nginx_upload_module-2.0.12
--add-module=/usr/ports/www/nginx/work/nginx_uploadprogress_module-0.8
--with-http_xslt_module
--add-module=/usr/ports/www/nginx/work/mod_zip-1.1.5
--add-module=/usr/ports/www/nginx/work/ngx_http_memc_module-0.08
--with-pcre
--add-module=/usr/ports/www/nginx/work/nginx_udplog_module-1.0.0
--with-mail --without-mail_imap_module --without-mail_pop3_module
--without-mail_smtp_module --with-mail_ssl_module





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