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 分类目录。将固定链接加入收藏夹。

发表评论

电子邮件地址不会被公开。 必填项已被标记为 *

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>