WordPress.org

Ready to get started?Download WordPress

Forums

JF3 Maintenance Redirect
Problem with Varnish enabled(and our fix) (1 post)

  1. sickmind
    Member
    Posted 8 months ago #

    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/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.