[PATCH 1 of 2] HTTP: Add client source port to any error that is logged

Quanah Gibson-Mount quanah at zimbra.com
Thu Apr 24 18:06:29 UTC 2014

--On April 24, 2014 at 9:56:48 PM +0400 Maxim Dounin <mdounin at mdounin.ru> 

>> $remote_port in the log format section only covers errors logged to the
>> access log, it does not cover errors in the error log.  The submitted
>> patch handles the error log.
> I understand the difference, thank you.
> The ticket in question only talked about error_log in context of
> mail module, where is no separate access logging to meet the
> alleged regulations.

Yes, that is true, but why only implement a partial solution?  With CGN, 
only logging the IP is fairly useless in all cases.  To truly get useful 
information going forward, the IP + PORT of the client should logged in all 


Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
Zimbra ::  the leader in open source messaging and collaboration

More information about the nginx-devel mailing list