转自:http://blog.sina.com.cn/s/blog_4b93170a0100mdgy.html
/etc/httpd/conf/httpd.conf 尾部
NameVirtualHost *:80
<VirtualHost *:80>
</VirtualHost>
<VirtualHost *:80>
</VirtualHost>
<VirtualHost *:80>
</VirtualHost>
//==================
如果只用一个IP
末尾添加如下几行:
NameVirtualHost 192.168.1.110
<VirtualHost www.test.com>
</VirtualHost>
<VirtualHost www.website1.com>
</VirtualHost>
<VirtualHost www.website2.com>
</VirtualHost>
评论