diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 4070a4c7ebed30484c2465efa3a661f26546244f..44dc4baa69257685f736446ebcbd32a70954fcca 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -15,7 +15,10 @@ http { '"$http_user_agent" "$http_x_forwarded_for"' '"$upstream_uri"'; + # Default log to stdout access_log /var/log/nginx/access.log main; + # Also write to file to persist logs + access_log /var/log/nginx/persist/access.$time_local.log main; sendfile on;