NameVirtualHost *:80 <VirtualHost *:80> ServerName www.test1.com ServerAlias domain.tld *.domain.tld DocumentRoot /www/test1 </VirtualHost> <VirtualHost *:80> ServerName www.test2.com DocumentRoot /www/test2 </VirtualHost> 请注意,如果要多个域名都使用80端口访问,必须加NameVirtualHost *:80这一句