conflicting rules

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


Hello,

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: https://forum.nginx.org/read.php?2,276715,276715#msg-276715



More information about the nginx mailing list