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

Francis Daly francis at daoine.org
Sun Mar 25 23:09:02 UTC 2012

On Sun, Mar 25, 2012 at 10:42:57PM +0000, Micheal Wolfskill wrote:

Hi there,

> Thanks.. but i think you are not understanding me.. the problem is that the log line is throwing an error. So i cannot log.

Put a line like

        access_log logs/$log.log;

inside the server{} block.

Whatever you set $log to in your map directive will be used in the

Francis Daly        francis at daoine.org

More information about the nginx mailing list