2 messages in ru.sysoev.nginxRe: x-forwarded-for ip in server acce...
FromSent OnAttachments
rkmr...@public.gmane.orgFeb 26, 2008 1:40 pm 
Yordan GeorgievFeb 26, 2008 10:08 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: x-forwarded-for ip in server access logsActions...
From:Yordan Georgiev (y.ge@public.gmane.org)
Date:Feb 26, 2008 10:08:31 pm
List:ru.sysoev.nginx

set X-Forwarded-For $add_x_forwarded_for; use $add_x_forwarded_for for log_format and any configure options

On Tue, Feb 26, 2008 at 11:41 PM, rkmr@gmail.com <rkmr@gmail.com> wrote:

how do i get the x-forwarded-for ip address in server access logs? i tried this log format in the server section, but i still get the default logs

how to fix this? thanks

server { listen 8070; server_name .XX.com; log_format main '$remote_addr - $remote_user [$time_local] $request ' '"$status" $body_bytes_sent "$http_referer"' '"$http_user_agent" "$http_x_forwarded_for"' '"$gzip_ratio" "$upstream_status" "$upstream_response_time" "$upstream_addr"'; access_log logs/access_pop.log; error_log logs/error_pop.log; location / { root /home/mark/work/pop; fastcgi_pass backend_pop; include /home/mark/work/infrastructure/nginx_fastcgi.conf; } }

Please excuse my bad english...

С уважение, Й. Георгиев.

WEB: http://gigavolt-bg.net/ Blog: http://live.gigavolt-bg.net/