天天看点

wamp 中配置域名的虚拟主机

#配置自己的虚拟主机

<VirtualHost *:80>

    #网站目录,如果在www目录下的php目录,下面就填写F:/www/phpp

    ServerAdmin www.ecx.com

    DocumentRoot "D:/wamp/www/ecx" 

    #域名

    ServerName www.ecx.com

    #这里配置欢迎首页面

    DirectoryIndex index.html index.htm index.php

    ErrorLog "logs/dummy-host2.example.com-error.log"

    CustomLog "logs/dummy-host2.example.com-access.log" common

</VirtualHost>

      本文转自噼里啪啦啦 51CTO博客,原文链接:http://blog.51cto.com/pilipala/1712554,如需转载请自行联系原作者