7 messages in ru.sysoev.nginxgetting remot4e address
FromSent OnAttachments
rkmr...@public.gmane.orgFeb 26, 2008 11:57 am 
Igor SysoevFeb 26, 2008 12:07 pm 
rkmr...@public.gmane.orgFeb 26, 2008 12:52 pm 
Igor SysoevFeb 26, 2008 1:00 pm 
rkmr...@public.gmane.orgFeb 26, 2008 1:11 pm 
Igor SysoevFeb 26, 2008 1:24 pm 
rkmr...@public.gmane.orgFeb 26, 2008 1:37 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:getting remot4e addressActions...
From:rkmr...@public.gmane.org (rkmr@public.gmane.org)
Date:Feb 26, 2008 11:57:53 am
List:ru.sysoev.nginx

hi i have haproxy running in front of nginx, and i have the x-forwarded-for enabled in the haproxy configuration. How do I configure nginx so that my fastcgi backends get this IP address as the remote ip address and not the ip address of the haproxy.

these are my fastcgi parameters

fastcgi_param SCRIPT_FILENAME $fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_script_name; fastcgi_param QUERY_STRING $query_string; fastcgi_param CONTENT_TYPE $content_type; fastcgi_param CONTENT_LENGTH $content_length; fastcgi_param REQUEST_METHOD $request_method; fastcgi_param REMOTE_ADDR $remote_addr; fastcgi_param REMOTE_PORT $remote_port; fastcgi_param SERVER_PROTOCOL $server_protocol; fastcgi_param SERVER_ADDR $server_addr; fastcgi_param SERVER_PORT $server_port; fastcgi_param SERVER_NAME $server_name;