[resolved] Reverse proxy settings don't save
-
When I check the box for “The server is behind a reverse proxy” and hit save, the setting does not save (the checkbox is no longer checked.)
My [HTTP_X_FORWARDED_FOR] has my client ip and some server network ip address separated by a comma.
Not sure what is causing the issue, but when i use [geoip_detect2 property=”mostSpecificSubdivision.name”] i get the State my server is in not where I am.
Any help is appreciated.
Thanks!
[resolved]
So looks like my varnish .vcl file had:if (req.restarts == 0) {
if (req.http.x-forwarded-for) {
set req.http.X-Forwarded-For =
req.http.X-Forwarded-For + “, ” + client.ip;
} else {
set req.http.X-Forwarded-For = client.ip;
}
}But req.http.X-Forwarded-For was already my client ip and client.ip was the load balancer’s ip, so i just set varnish to use the req.http.X-Forwarded-For.
The checkbox for “The server is behind a reverse proxy” doesn’t stay checked however even though it does actually appear to be saving.
- The topic ‘[resolved] Reverse proxy settings don't save’ is closed to new replies.