"access_log" directive is not allowed here in... how to do this properly?

Micheal Wolfskill tdgh2323 at hotmail.com
Sun Mar 25 23:40:51 UTC 2012





> Don't write:
> 
> >                  if ($log) { access_log /root/$log.log; slim; }
> 
> Do write:
> 
>          access_log /root/$log.log;


I did. No errors.. but its not writing any log file at all... I think this defeats the purpose... because I only want to log for when the IP of the remote user matches any of those countries in the http {} section.




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


More information about the nginx mailing list