diff --git a/files/hina/nginx.conf b/files/hina/nginx.conf index df938c1f2c8ae1dffdf8079a9043efee009487a5..bf9382b15cfd44e670aa61cdd65b50c191babf95 100644 --- a/files/hina/nginx.conf +++ b/files/hina/nginx.conf @@ -44,12 +44,17 @@ http { '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" - "$http_x_forwarded_for"'; + log_format anon '- - - [$time_local] "$request" ' + '$status $body_bytes_sent "$http_referer" ' + '"$http_user_agent"'; + server { listen 80; listen [::]:80; server_name hina; access_log /var/log/nginx/access.log main; + access_log /var/log/nginx/anon_access.log anon; location / { root /var/ftp; @@ -79,6 +84,7 @@ http { server_name hina; access_log /var/log/nginx/access.log main; + access_log /var/log/nginx/anon_access.log anon; ssl_dhparam /usr/local/etc/nginx/dhparam.pem;