I decided to migrate from apache to nginx and all has gone well so far, except i'm having difficulty trying to work out how to stop certain IP's & host-names from being logged.
under apache all i had to do was this:
[code]
SetEnvIf Remote_Addr "^(192\.168\.1\.[0-9]{1,3})$" dontlog
SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog
SetEnvIf Remote_Host "\.lan$" dontlog
[/code]
and then add "env=!dontlog" to the end of the custom log line.
is their something similar to this in nginx?