diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-09-28 19:46:19 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-09-28 19:46:29 +0200 |
commit | baff7eba19eb0377d0a17793434676aaa52c0464 (patch) | |
tree | bda8a8c9363e661be10eedcde53546071f09c651 /etc | |
parent | 6b503b5d57f736e85d799a4e640c5a8b0c3b439c (diff) | |
download | deployment-baff7eba19eb0377d0a17793434676aaa52c0464.tar.gz deployment-baff7eba19eb0377d0a17793434676aaa52c0464.tar.bz2 deployment-baff7eba19eb0377d0a17793434676aaa52c0464.zip |
add host to nginx logging
Diffstat (limited to 'etc')
-rw-r--r-- | etc/nginx/nginx.conf | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/nginx/nginx.conf b/etc/nginx/nginx.conf index 191e393..dc0a57e 100644 --- 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; |