diff --git a/nginx/templates/default.conf.template b/nginx/templates/default.conf.template index 39ebd03b1bf2664f68c73400405bba821f08eb6b..dc599d6072ed8166c4e309f22a1218ad5746141b 100644 --- a/nginx/templates/default.conf.template +++ b/nginx/templates/default.conf.template @@ -55,9 +55,12 @@ server { proxy_pass https://data.grandlyon.com/fr/datapusher/ws/grandlyon/adr_voie_lieu.adrcomgl/all.json; } - # Persist logs to a daily file + # Persist logs for jeuAieAieIA location /shared/jeuAieAieIA { - access_log /usr/share/nginx/html/shared/jeuAieAieIA/stats/log/access.$year-$month-$day.log main; + # Default log which is redirected to stdout (must be reset in this block because of "access_log" below) + access_log /var/log/nginx/access.log main; + # And also write to a daily file + access_log /usr/share/nginx/html/shared/jeuAieAieIA/stats/log/access.$year-$month-$day.log main; } location / {