commit baff7eba19eb0377d0a17793434676aaa52c0464 parent 6b503b5d57f736e85d799a4e640c5a8b0c3b439c Author: Florian Dold <florian.dold@gmail.com> Date: Wed, 28 Sep 2016 19:46:19 +0200 add host to nginx logging Diffstat:
| M | etc/nginx/nginx.conf | | | 4 | ++++ |
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/etc/nginx/nginx.conf b/etc/nginx/nginx.conf @@ -30,6 +30,10 @@ http { # Logging Settings ## + log_format main '$remote_addr - $remote_user [$time_local] $host ' + '"$request" $status $body_bytes_sent ' + '"$http_referer" "$http_user_agent"'; + access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log;