FORCE_SSL_ADMIN problem with WP 3 multi-site
-
Hello. I’ve installed WordPress 3.0 with multi-site support. It is running on Red Hat Enterprise Linux 5.5 with Apache 2.2.3 and PHP 5.2.10.
I’m trying to force administration to happen over SSL. I’ve set up the certificates so that SSL works correctly. According to http://codex.wordpress.org/Administration_Over_SSL, all i should have to do is put “define(‘FORCE_SSL_ADMIN’, true);” into wp-config.php. But when i do that, login gets stuck in a redirect loop.
For example, connecting to the server on port 80 and asking for the login page gets a redirect to the SSL version, as one would expect:
$ telnet oit-test.drake.edu 80
GET /wp-login.php HTTP/1.1
Host: oit-test.drake.edu
Connection: CloseHTTP/1.1 302 Found
Date: Mon, 19 Jul 2010 21:31:23 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.2.10
Location: https://oit-test.drake.edu/wp-login.php
Content-Length: 0
Connection: close
Content-Type: text/html; charset=UTF-8But then connecting to the SSL version gets the exact same response!
$ openssl s_client -connect oit-test.drake.edu:443
GET /wp-login.php HTTP/1.1
Host: oit-test.drake.edu
Connection: CloseHTTP/1.1 302 Found
Date: Mon, 19 Jul 2010 21:32:56 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.2.10
Location: https://oit-test.drake.edu/wp-login.php
Content-Length: 0
Connection: close
Content-Type: text/html; charset=UTF-8It seems that WordPress isn’t aware that the connection came in via SSL. I tried setting “SSLOptions +StdEnvVars” in Apache’s configuration to see if WordPress needed more variables set, but that did nothing. Is there anything else i can do to make it work correctly? Has anyone else seen this?
The topic ‘FORCE_SSL_ADMIN problem with WP 3 multi-site’ is closed to new replies.