remote_port variable is empty in log

Maxim Dounin mdounin at mdounin.ru
Fri Sep 8 13:08:29 UTC 2017


Hello!

On Fri, Sep 08, 2017 at 01:06:46PM +0200, Antonio Nappa wrote:

> Is there a reason why the $remote_port variable of the http module could be
> empty? I am using it in a custom log format, and from time to time it is
> empty.

There can be multiple possible reasons, including using unix 
sockets and realip module without port information provided.

Note that this is a mailing list for developers.  For user-level 
questions like this one, please use the nginx@ mailing list 
instead.  Thank you.

-- 
Maxim Dounin
http://nginx.org/


More information about the nginx-devel mailing list