<div>We are using nginx/1.0.5 from the nginx apt repositories and have noticed that when setting the access_log directive in /etc/nginx/conf.d/common, it does nothing unless I comment out the access_log directive above it in /etc/nginx/nginx.conf.</div>
<div><br></div><div>It appears that the variable is evaluated only the first time in any given block (in this case inside the http { } block) and cannot be overridden.  Is that the case?</div><div><br></div><div>If so, I think the best solution is to move the access_log directive inside each of the individual location { } blocks where I need it so as not to interfere with the stock nginx.conf file.</div>
<div><br></div><div>The only other alternative I can think of is to overwrite the nginx.conf file entirely - I'm concerned about doing that because I don't want that file overwritten by the nginx aptitude installer in the future.</div>
<div><br></div><div>Does anybody have a good solution to this?</div><div><br></div><div>Cheers,</div><div>Adam</div><div>---<br>UX/UI/IA positions available @ <a href="http://yipit.com/about/jobs/" target="_blank">http://yipit.com/about/jobs/</a><br>

</div>