apache 的httpd.conf如何添加虚拟主机?
<VirtualHost 10.63.251.11>
DocumentRoot E:/www/test
ServerName www.test.com
ServerAlias test.com
DirectoryIndex index.php default.html default.htm index.html index.htm
</VirtualHost>
在 httpd.conf尾巴部分加上这么一条记录后重启apache就可以了哦:)
本文链接地址: apache 的httpd.conf如何添加虚拟主机?
分类: apache
近期评论