Remote Client Ip address logging problem in nginx
Abhishek Singh
opensourcelearning at gmail.com
Thu Aug 9 09:42:31 MSD 2007
Thanks Igor,
I was doing same thing but at wrong place , finally i troubleshoot this.
thanks alot for replying.
On 8/9/07, Igor Sysoev <is at rambler-co.ru> wrote:
>
> 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
>
> $http_rlnclientipaddr
>
> Are you sure about stars in "%{*rlnclientipaddr*}i" ?
>
>
> --
> Igor Sysoev
> http://sysoev.ru/en/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20070809/c28c04d8/attachment.html>
More information about the nginx
mailing list