Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter philjones85

    (@philjones85)

    I edited wp-config.php:
    define(‘FORCE_SSL_ADMIN’, false);

    And I can login without SSL fine. But with SSL I can’t login.

    Thread Starter philjones85

    (@philjones85)

    More debugging. I can login through SSL if I’m behind the reverse proxy, but not going through the reverse proxy.

    I looked at the headers and when I don’t go through the reverse proxy, it sets the cookie to log me in. When I go through the reverse proxy, wordpress doesn’t set the cookie to log me in. Any idea what might cause wordpress to not set the cookie?

    Thread Starter philjones85

    (@philjones85)

    solved the problem, sort of…

    Found this:
    http://codex.ww.wp.xz.cn/Administration_Over_SSL

    added to reverse proxy apache config
    RequestHeader set X-Forwarded-Proto "http"

    added to top of wp-config.php

    if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
           $_SERVER['HTTPS']='on';

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Can't login to wp-admin behind apache reverse proxy’ is closed to new replies.