天天看點

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,如需轉載請自行聯系原作者