<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
<div class="moz-cite-prefix">On 10/5/2017 11:25 AM, shiz wrote:<br>
</div>
<blockquote type="cite"
cite="mid:8cf78883139acf13805f2f4d9db044c9.NginxMailingListEnglish@forum.nginx.org">
<pre wrap="">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;
}</pre>
</blockquote>
<br>
Use an exact match for that URL instead of a Regex, i.e.<br>
<pre wrap=""> location = /Scripts/awstats_misc_tracker.js {
access_log on;
}</pre>
See also
<a class="moz-txt-link-freetext" href="http://nginx.org/en/docs/http/ngx_http_core_module.html#location">http://nginx.org/en/docs/http/ngx_http_core_module.html#location</a><br>
<br>
<div class="moz-signature">
<p>Igal Sapir
<br>
Lucee Core Developer
<br>
<a href="http://lucee.org/">Lucee.org</a></p>
</div>
<br>
<br>
<br>
<br>
</body>
</html>