2 messages in ru.sysoev.nginxx-forwarded-for ip in server access logs
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:x-forwarded-for ip in server access logsActions...
From:rkmr...@public.gmane.org (rkmr@public.gmane.org)
Date:Feb 26, 2008 1:40:51 pm
List:ru.sysoev.nginx

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; } }