Hi all I read about mass virtual hosting with mod rewrite and it seems grate for me. I want to implament it but i have a problem. I dont kno how to do it with server alias: NameVirtualHost *:80 <VirtualHost *:80> ServerName www.domain.tld ServerAlias domain.tld *.domain.tld DocumentRoot /www/domain </VirtualHost> <VirtualHost *:80> ServerName www.otherdomain.tld DocumentRoot /www/otherdomain </VirtualHost> how can I do it Thanks
I'm not sure what is the problem exactly? The ServerAlias is an optional list of additional domains (in addition to ServerName) that the virtual host will respond to. You have it configured properly above so it should work.