来源:
http://oss.org.cn/man/newsoft/ApacheManual/vhosts/name-based.html
使用基于域名的虚拟主机
NameVirtualHost *
<VirtualHost *>
ServerName www.domain.tld
ServerAlias domain.tld *.domain.tld
DocumentRoot /www/domain
</VirtualHost>
<VirtualHost *>
ServerName www.otherdomain.tld
DocumentRoot /www/otherdomain
</VirtualHost>
apache配置虚拟主机(转载)
猜你喜欢
转载自xieye.iteye.com/blog/1415566
今日推荐
周排行