SSL and ServerAlias on one Apache server with multiple domains

view full story

http://serverfault.com – I have a virtual sever which I would like to point two domains to, both pointing to different sites. For example, example1.com goes to /var/www/example1. example2.com goes to /var/www/example2. I can do this just fine with VirtualHosts: <VirtualHost *:80> ServerName example1.com DocumentRoot "/var/www/example1" </VirtualHost> <VirtualHost *:80> ServerName example2.com DocumentRoot "/var/www/example2" </VirtualHost> My first question is to do with the leading www. In order to enable support for the www, I have just added a ServerAlias: <VirtualH (HowTos)