Remote Client Ip address logging problem in nginx

Abhishek Singh opensourcelearning at
Wed Aug 8 20:34:39 MSD 2007


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list