conflicting rules

shiz nginx-forum at forum.nginx.org
Thu Oct 5 19:15:17 UTC 2017


1 - If I disable that section


#location ~* ^.+\.(css|js)$|^/(css|Scripts|uploads)/ { 
#expires -1; 
#access_log off; 
#log_not_found off; 
#}

location = /Scripts/awstats_misc_tracker.js { 
access_log on; 
}

the javascript are shown in the log. /Scripts/awstats_misc_tracker.js isn't
though.

2 - Now if also disable that section, /Scripts/awstats_misc_tracker.js is
finally showing so something else must be conflicting

#location = /Scripts/awstats_misc_tracker.js { 
#access_log on; 
#}

~:/var/log# grep awstat nginx/access.log
xx.xx.xx.xxx - - [05/Oct/2017:12:08:31 -0700] "GET
/Scripts/awstats_misc_tracker.js HTTP/1.0"

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,276715,276721#msg-276721



More information about the nginx mailing list