improve log format
This commit is contained in:
parent
13cb31da67
commit
4d82b39ef9
2 changed files with 5 additions and 2 deletions
|
|
@ -1,2 +1,4 @@
|
|||
access_log /var/log/nginx/access.log;
|
||||
error_log /var/log/nginx/error.log;
|
||||
log_format vcombined '$host:$server_port $remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"';
|
||||
|
||||
access_log /var/log/nginx/access.log vcombined;
|
||||
error_log /var/log/nginx/error.log warn;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue