Skip to content
Snippets Groups Projects
Commit f0cd25eb authored by Andreas Kempe's avatar Andreas Kempe
Browse files

hina: nginx: add anonymous access log

parent 9eac06ff
Branches hina_anon_nginx_log
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment