Welcome! Log In Create A New Profile

Advanced

Re: conflicting rules

Igal @ Lucee.org
October 05, 2017 02:30PM
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/





_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

conflicting rules

shiz October 05, 2017 02:25PM

Re: conflicting rules

Igal @ Lucee.org October 05, 2017 02:30PM

Re: conflicting rules

shiz October 05, 2017 02:40PM

Re: conflicting rules

Igal @ Lucee.org October 05, 2017 02:42PM

Re: conflicting rules

shiz October 05, 2017 02:50PM

Re: conflicting rules

Francis Daly October 05, 2017 04:32PM

Re: conflicting rules

shiz October 05, 2017 03:15PM

Re: conflicting rules

Igal @ Lucee.org October 05, 2017 03:20PM

Re: conflicting rules

shiz October 05, 2017 03:22PM

Re: conflicting rules

shiz October 05, 2017 04:50PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 313
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready