APACHE虚拟主机配置问题,
我怎样才能把多个域名配置到同一虎拟主机上??
www.abc.com和www.aaa.com
都指到同一主机上.怎么配置??
------解决方案--------------------ServerName www.abc.com
ServerAlias www.abc.com
------解决方案--------------------apache 2 下面
Listen 80
NameVirtualHost 192.168.0.12
<VirtualHost 192.168.0.12>
DocumentRoot /var/www/aaa
ServerName www.aaa.com
</VirtualHost>
<VirtualHost 192.168.0.12>
DocumentRoot /var/www/bbb
ServerName www.bbb.com
</VirtualHost>