[blogs-web/fpm] Add blogid and http_host to log_format



commit fccd5cb9cbf2ae9c9c43b4606f8e661bf19a47a1
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Tue Oct 13 12:27:27 2020 +0200

    Add blogid and http_host to log_format

 nginx.conf | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/nginx.conf b/nginx.conf
index 889644e..f1dd68e 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -17,12 +17,6 @@ http {
     include       /etc/nginx/mime.types;
     default_type  application/octet-stream;
 
-    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
-                      '$status $body_bytes_sent "$http_referer" '
-                      '"$http_user_agent" "$http_x_forwarded_for"';
-
-    access_log  /dev/stdout  main;
-
     sendfile        on;
     #tcp_nopush     on;
 
@@ -48,11 +42,16 @@ http {
         include /var/www/html/wp-content/uploads/nginx-helper/map.conf;
     }
 
+    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
+                      '$status $body_bytes_sent "$http_referer" '
+                      '"$http_user_agent" "$http_x_forwarded_for" "$http_host" 
+                     "$blogid"';
+    access_log  /dev/stdout  main;
+
     server {
         listen 8080 default_server;
         listen [::]:8080 default_server;
         
-        access_log /dev/stdout;
         error_log /dev/stderr;
         
         absolute_redirect off;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]