March 2010
M T W T F S S
« Feb    
1234567
891011121314
15161718192021
22232425262728
293031  

Apache redirect from HTTP to HTTPS (SSL) on same server

I want to redirect an HTTP connection to HTTPS on same server, to avoid wrong access through HTTP to some information that I dont want to be public, like awstats or services that I want to be secure like phpmyadmin.
The first thing that one thinks seems weird at first view, using mod_alias Redirect directive:

Redirect [...]

Apache2: [warn] RSA server certificate CommonName (CN) does NOT match server name!?

Just a note for those whose has find that warning message in his apache web server: Apache’s ServerName directive IS CASE SENSITIVE.
[warn] RSA server certificate CommonName (CN) `MARZOA.COM’ does NOT match server name!?
I had “ServerName marzoa.com” directive on my configuration file for that virtual host, but that was not working. The last thing that I [...]