WordPress.org

Forums

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

  1. sickmind
    Member
    Posted 1 year 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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • JF3 Maintenance Redirect
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.