I just upgraded to aegir 3.0. If I enable SSL on a site.com only, and if I hit https://example.com. I will be redirected to https://localhost.com (i.e. documentRoot /var/www/html, the default server host)
In order for https://example.com (with https) to work, I need to copy virtualhost config of site.com to /etc/httpd/conf.d/ssl.conf in Centos 6. That is not ideal, because the site virtualhost config is generated by aegir.
Is it a way to do it without copying virtualhost config to /etc/httpd/conf.d/ssl.conf?
Update
I did create a band new site (https://example.com) in Aegir. The virtual host configuraiton in /var/aegir/config/server_master/apache/vhost.d/example.com
, contains a line like this <VirtualHost *:443>
If I change it to <VirtualHost 1.2.3.4:443>
(i.e. the ip of the server), it works, but why?
a2enmod
which you'll find in some flavours of linux, which enables an apache module, or a2ensite, etc). Drupal can't help you here though I'm afraid, this is a server config question