Re: conflicting rules

2017-10-05 Thread shiz
Hey, nice catch, thanks so much! access_log on is not defeating access_log off; replaced the directive with: location = /Scripts/awstats_misc_tracker.js { } Thanks to both of you. Solved. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,276715,276725#msg-276725 __

Re: conflicting rules

2017-10-05 Thread Francis Daly
On Thu, Oct 05, 2017 at 02:40:03PM -0400, shiz wrote: Hi there, > Thanks, unfortunately it does not work > > grep awstat nginx/access.log |wc -l > 0 http://nginx.org/r/access_log Look in the log file called "on", not in the log file called "nginx/access.log". f -- Francis Daly

Re: conflicting rules

2017-10-05 Thread shiz
I'm positive. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,276715,276723#msg-276723 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: conflicting rules

2017-10-05 Thread Igal @ Lucee.org
And you're sure about the CaSe, right?  I notice that everything is lowercase for you except for the Scripts directory. On 10/5/2017 12:15 PM, shiz wrote: 1 - If I disable that section #location ~* ^.+\.(css|js)$|^/(css|Scripts|uploads)/ { #expires -1; #access_log off; #log_not_found off; #}

Re: conflicting rules

2017-10-05 Thread shiz
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 -

Re: conflicting rules

2017-10-05 Thread shiz
yes of course I've reordered them too: location = /Scripts/awstats_misc_tracker.js { access_log on; } location ~* ^.+\.(css|js)$|^/(css|Scripts|uploads)/ { expires 50d; access_log off; log_not_found off; add_header Cache-Control "public"; } nginx -t nginx: the conf

Re: conflicting rules

2017-10-05 Thread Igal @ Lucee.org
On 10/5/2017 11:40 AM, shiz wrote: Thanks, unfortunately it does not work Did you reload the config after you modified it? Igal Sapir Lucee Core Developer Lucee.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/m

Re: conflicting rules

2017-10-05 Thread shiz
Thanks, unfortunately it does not work grep awstat nginx/access.log |wc -l 0 Posted at Nginx Forum: https://forum.nginx.org/read.php?2,276715,276718#msg-276718 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: conflicting rules

2017-10-05 Thread Igal @ Lucee.org
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; } Us

conflicting rules

2017-10-05 Thread shiz
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