WordPress.org

Support

Support » Plugins and Hacks » Problem with Varnish enabled(and our fix)

Problem with Varnish enabled(and our fix)

  • We had some issues with this plugin and use of Varnish, it always set the internal private IP´s of our nodes. Our solutuion was to change

    Line:63
    $ip = ( $_SERVER['HTTP_X_FORWARD_FOR'] ) ? $_SERVER['HTTP_X_FORWARD_FOR'] : $_SERVER['REMOTE_ADDR'];

    With:
    $ip = ( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];

    Hope this can be included in next release or might help some one now.

    http://wordpress.org/plugins/jf3-maintenance-mode/

  • The topic ‘Problem with Varnish enabled(and our fix)’ is closed to new replies.