artheus
September 28th, 2009, 02:45 PM
Hey
I've installed SSL on my apache now. And now I want http://www.mydomain.com to be redirected to https://www.mydomain.com..
But is I do this using the
<virtualhost *:80>
ServerName mydomain.com
Redirect / https://www.mydomain.com
</virtualhost>
<virtualhost *:443>
ServerName mydomain.com
DocumentRoot /var/www
</virtualhost>
It will complain about
Error code: ssl_error_rx_record_too_long
so if I instead redirect it to https://www.mydomain.com:443 it works just fine. But I don't want that ":443" to be there! It bugs me! So how can I do this?
Cheers,
Artheus
I've installed SSL on my apache now. And now I want http://www.mydomain.com to be redirected to https://www.mydomain.com..
But is I do this using the
<virtualhost *:80>
ServerName mydomain.com
Redirect / https://www.mydomain.com
</virtualhost>
<virtualhost *:443>
ServerName mydomain.com
DocumentRoot /var/www
</virtualhost>
It will complain about
Error code: ssl_error_rx_record_too_long
so if I instead redirect it to https://www.mydomain.com:443 it works just fine. But I don't want that ":443" to be there! It bugs me! So how can I do this?
Cheers,
Artheus