• Resolved torod15

    (@torod15)


    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.

    https://wordpress.org/plugins/geoip-detect/

Viewing 1 replies (of 1 total)
  • Plugin Author Benjamin Pick

    (@benjaminpick)

    You’re right, since the refactoring in 2.4.0 the checkboxes didn’t show up properly (although the options still work) – this is fixed in Github and with the next minor release.

Viewing 1 replies (of 1 total)
  • The topic ‘[resolved] Reverse proxy settings don't save’ is closed to new replies.