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

Micheal Wolfskill tdgh2323 at hotmail.com
Sun Mar 25 23:15:43 UTC 2012


Hello Francis,

> Put a line like
> 
>         access_log logs/$log.log;
> 
> inside the server{} block.
> 

I did, iam still getting the error.
[emerg]: "access_log" directive is not allowed here in /etc/nginx/nginx.conf:55

The line 55 is:                 if ($log) { access_log /root/$log.log; slim; }

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


More information about the nginx mailing list