conflicting rules

shiz nginx-forum at
Thu Oct 5 18:25:44 UTC 2017


I exclude the stylesheets and javascript from the logs to alleviate them. 
However I would want to make an exception for awstats.

So far the following doesn't work.  Any help?

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

  location ~* ^/Scripts/awstats_misc_tracker.js {
    access_log on;

Posted at Nginx Forum:,276715,276715#msg-276715

More information about the nginx mailing list