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;
|
log_format vcombined '$host:$server_port $remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"';
|
||||||
error_log /var/log/nginx/error.log;
|
|
||||||
|
access_log /var/log/nginx/access.log vcombined;
|
||||||
|
error_log /var/log/nginx/error.log warn;
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@
|
||||||
pkg:
|
pkg:
|
||||||
- nginx
|
- nginx
|
||||||
- libnginx-mod-http-headers-more-filter
|
- libnginx-mod-http-headers-more-filter
|
||||||
|
- goaccess
|
||||||
notify:
|
notify:
|
||||||
- delete nginx index.nginx-debian.html
|
- delete nginx index.nginx-debian.html
|
||||||
- restart nginx
|
- restart nginx
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue