Hello. I am running Ubuntu 10.4 Lucid. I've enabled ssl on apache; however, when test the link, I get an 500 internal server error. The error log shows The script in question may have been this. Is there something wrong with this script? It is to enable multiple ssl vhost. I followed this guide here. Code: ### Mass SSL Vhosts ### RewriteEngine on # define two maps: one for fixing the URL and one which defines # the available virtual hosts with their corresponding # DocumentRoot. RewriteMap lowercase int:tolower RewriteMap vhost txt:/etc/apache2/ssl.map # 1. make sure we don't map for common locations RewriteCond %{REQUEST_URI} !^/cgi-bin/.* RewriteCond %{REQUEST_URI} !^/icons/.* # 2. make sure we have a Host header RewriteCond %{HTTP_HOST} !^$ # 3. lowercase the hostname RewriteCond ${lowercase:%{HTTP_HOST}|NONE} ^(.+)$ # # 4. lookup this hostname in vhost.map and # remember it only when it is a path # (and not "NONE" from above) RewriteCond ${vhost:%1} ^(/.*)$ # 5. finally we can map the URL to its docroot location # and remember the virtual host for logging puposes RewriteRule ^/(.*)$ %1/$1 [E=VHOST:${lowercase:%{HTTP_HOST}}] I've also created a .htaccess rewrite that redirects all my domains that is not using ssl to a non ssl site. Code: #Redirect all non active ssl RewriteCond %{HTTP_HOST} !^webmail.domain.com$ [NC] RewriteRule (.*) http://nossl.domain.com [R,L]