conflicting rules

Igal @ Lucee.org igal at lucee.org
Thu Oct 5 18:29:38 UTC 2017


Hi,

On 10/5/2017 11:25 AM, shiz wrote:
> 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 ~* ^/Scripts/awstats_misc_tracker.js {
>      access_log on;
>    }

Use an exact match for that URL instead of a Regex, i.e.

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

See also http://nginx.org/en/docs/http/ngx_http_core_module.html#location

Igal Sapir
Lucee Core Developer
Lucee.org <http://lucee.org/>





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20171005/561c9c38/attachment.html>


More information about the nginx mailing list