Page 1 of 1

[Solved] Admin console and SSL

Posted: Sun Feb 13, 2011 10:51 pm
by ThatOtherGuy
Hello all,

I am trying to get the admin pages to be encrypted, for obvious reasons.

The SSL cert is up and fine, and the .htaccess file is straight out of the CMSMS FAQ:

Code: Select all

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
The http://<website>/admin redirects to https fine, however when attempting to log in... it goes right back to the login.php, instead of actually logging in.

If I rename the htaccess and log in with http, everything is fine. If I'm already in the console in http, re-enable https, and refresh the page - it redirects properly, I can navigate inside the admin console, but the images all give the security warnings associated with mixed-mode pages, since I don't have the htaccess file in the theme directories.

I can't for the life of me figure out why the login is failing so hard. Any thoughts?

Thanks!

Re: Admin console and SSL

Posted: Sun Feb 13, 2011 11:26 pm
by ThatOtherGuy
Forgot to add:

CMSMS 1.9.3, PHP 5.3.2, Apache 2.2.14 (Ubuntu), MySQL 5.1.41