View Single Post
  #3  
Old 8th August 2012, 16:42
tahunasky tahunasky is offline
Member
 
Join Date: Jul 2012
Location: Buenos Aires
Posts: 84
Thanks: 1
Thanked 8 Times in 8 Posts
Default

Quote:
Originally Posted by TiTex View Post
Code:
<VirtualHost *:443> 
Servername mail.domain1.com
ServerAlias mail.domain2.com
ServerAlias mail.domain3.com
DocumentRoot /opt/webmail 
</VirtualHost> 

<VirtualHost *:443>
Servername cloud.domain1.com 
ServerAlias cloud.domain2.com
ServerAlias cloud.domain3.com  
DocumentRoot /opt/cloud 
</VirtualHost>
Thanks for the reply, however this is basically what i have now, except i have:

Code:
<VirtualHost *:443> 
  Servername mail.domain1.com
  ServerAlias mail.domain2.com mail.domain3.com
  DocumentRoot /opt/webmail 
</VirtualHost> 

<VirtualHost *:443>
  Servername cloud.domain1.com 
  ServerAlias cloud.domain2.com cloud.domain3.com  
  DocumentRoot /opt/cloud 
</VirtualHost>
I dont want to have to add to the serveralias line everytime i add a new domain, or remove from serveralias everytime i delete a domain.

I am trying to do something where i dont have to add/delete when i add or remove domains, just set it up once with wildcards or whatever and it works with all domains.
Reply With Quote