This was done in ubuntu 9.04 jaunty
First enable the mod-rewrite module of the apache2 web server :
cd /etc/apache2
cd mods-enabled
sudo ln -s ../mods-available/rewrite.load rewrite.load
Then add the pre-configured virtual host that will work over SSL
cd /etc/apache2
cd sites-enabled
sudo ln -s ../sites-available/default-ssl 000-default-ssl
To forward all not-SSL requests (port 80) to the SSL host, add the following lines in the virtual host for port 80 (on ubuntu, it is the file called sites-available/default) :
RewriteEngine On
RewriteRule ^(.*)$ https://myroundcubeserver.mydomain.com$1
No comments:
Post a Comment