Welcome! Log In Create A New Profile

Advanced

Re: log_format и nginx reload

July 09, 2011 10:17AM
Извините, разобрался - проблема была в следующем:
log_format '$remote_addr - $remote_user [$time_local] '
'"$request" $status $bytes_sent $request_time [$upstream_response_time]'
'"$http_referer" "$http_user_agent" "$gzip_ratio" '
'"$upstream_addr"';

access_log /var/log/nginx/access.log;

а необходимо было так:
log_format main '$remote_addr - $remote_user [$time_local] '
'"$request" $status $bytes_sent $request_time [$upstream_response_time]'
'"$http_referer" "$http_user_agent" "$gzip_ratio" '
'"$upstream_addr"';

access_log /var/log/nginx/access.log main;

Соответственно reload можно делать во всех случаях, кроме изменения параметров сокета. Спасибо

--
Respectfully,
Stanislav Putrya
System administrator
Fotostrana.Ru.
ICQ IM: 328585847
Jabber-GoogleTalk: root.vagner
mob. phone: +79525600664
email: putrya@playform.com
email: vagner@bsdway.ru
email: root.vagner@gmail.com

----------------------------------------
( ) ASCII ribbon campaign
X - against HTML, vCards and
/ \ - proprietary attachments in e-mail
Subject Author Posted

log_format и nginx reload

vagner July 09, 2011 09:59AM

Re: log_format и nginx reload

vagner July 09, 2011 10:17AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 77
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready