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

Francis Daly francis at daoine.org
Sun Mar 25 23:21:40 UTC 2012


On Sun, Mar 25, 2012 at 11:15:43PM +0000, Micheal Wolfskill wrote:

Hi there,

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

Don't write:

>                  if ($log) { access_log /root/$log.log; slim; }

Do write:

         access_log /root/$log.log;

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list