summaryrefslogtreecommitdiff
path: root/etc/nginx/nginx.conf
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-09-28 19:46:19 +0200
committerFlorian Dold <florian.dold@gmail.com>2016-09-28 19:46:29 +0200
commitbaff7eba19eb0377d0a17793434676aaa52c0464 (patch)
treebda8a8c9363e661be10eedcde53546071f09c651 /etc/nginx/nginx.conf
parent6b503b5d57f736e85d799a4e640c5a8b0c3b439c (diff)
downloaddeployment-baff7eba19eb0377d0a17793434676aaa52c0464.tar.gz
deployment-baff7eba19eb0377d0a17793434676aaa52c0464.tar.bz2
deployment-baff7eba19eb0377d0a17793434676aaa52c0464.zip
add host to nginx logging
Diffstat (limited to 'etc/nginx/nginx.conf')
-rw-r--r--etc/nginx/nginx.conf4
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;