Comment 3 for bug 1375778

Revision history for this message
Bryan Agee (bryanagee) wrote :

For anyone else needing a fix, this can be run in your bootstrap/config:
<?php //bootstrap.php, etc.

        // HACK: workaround for intermittent bug in libapache2-mod-rpaf 0.6-12
        // ( https://bugs.launchpad.net/ubuntu/+source/libapache2-mod-rpaf/+bug/1375778 )
        if (in_array($_SERVER["REMOTE_ADDR"], ['192.168.55.1',/* other addresses here */])
                && isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
            $_SERVER["REMOTE_ADDR"] = $_SERVER['HTTP_X_FORWARDED_FOR'];
        }