Welcome! Log In Create A New Profile

Advanced

X Forwarded For in HTTPS connections

Posted by jwilson 
X Forwarded For in HTTPS connections
August 30, 2011 02:25PM
We have a very typical setup - HAProxy forwarding to nginx, which then proxies to PHP-FPM.

The issue we have is figuring out the remote client IP. Setting REMOTE_ADDR to $http_x_forwarded_for works fine for HTTP traffic, but fails on HTTPS traffic (ie. it's blank.)

Is there a way to figure out the remote address for SSL connections?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 196
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready