![]() |
Apache - same subdomain on multiple domains
hi,
Is there a way in apache to have the same subdomain on multiple domains point to the same doc root without having to have a virtualhost directive for each domain. I am hosting multiple domains on the same server with the same subdomain names - mail.domain1.com & cloud.domain1.com, mail.domain2.com & cloud.domain2.com, mail.domain3.com & cloud.domain3.com etc and want all the mail subdomains to point to /opt/webmail/ and all the cloud subdomains to point to /opt/cloud/. I have tried the below but it doesnt work. Code:
<VirtualHost *:443> thanks |
Code:
<VirtualHost *:443> |
Quote:
Code:
<VirtualHost *:443> 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. |
i don't think that the wildcard works after the subdomain
|
| All times are GMT +2. The time now is 23:02. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.