Преглед изворни кода

Improve logging

Currently its almost impossible to know which host actually handled the request, this extra variable logs the upstream server too
Scott Dutton пре 4 година
родитељ
комит
9f069a42ac
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      nginx.tmpl

+ 2 - 1
nginx.tmpl

@@ -108,7 +108,8 @@ gzip_types text/plain text/css application/javascript application/json applicati
 
 
 log_format vhost '$host $remote_addr - $remote_user [$time_local] '
 log_format vhost '$host $remote_addr - $remote_user [$time_local] '
                  '"$request" $status $body_bytes_sent '
                  '"$request" $status $body_bytes_sent '
-                 '"$http_referer" "$http_user_agent"';
+                 '"$http_referer" "$http_user_agent" '
+		 '"$upstream_addr"';
 
 
 access_log off;
 access_log off;