Remote Client Ip address logging problem in nginx

Igor Sysoev is at
Wed Aug 8 23:38:41 MSD 2007

On Wed, Aug 08, 2007 at 10:04:39PM +0530, Abhishek Singh wrote:

> I am using nginx as web and proxy server for my mongrel cluster, and nginx
> web server is behind my ISP loadbalancer , so nginx $remote_addr variable is
> logging my isp loadbalancer ip address in nginx.vhost.access.log file ,
> earlier when i was using apache so i solved this problem by rlnclientipaddr
> http header by adding this %{*rlnclientipaddr*}i  parameter in apache log
> format , now how can i do the same thing in nginx , any idea please help me


Are you sure about stars in "%{*rlnclientipaddr*}i" ?

Igor Sysoev

More information about the nginx mailing list