首页 > apache > apache 的httpd.conf如何添加虚拟主机?

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如何添加虚拟主机?

Share
分类: apache 标签:
  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.