1. 程式人生 > >Apache配置虛擬主機httpd-vhosts.conf配置步驟

Apache配置虛擬主機httpd-vhosts.conf配置步驟

    ServerAdmin [email protected]
    DocumentRoot "D:\wamp\www\專案名"
    ServerName my.xiangmu.com
    ErrorLog "logs/dummy-host2.example.com-error.log"
    CustomLog "logs/dummy-host2.example.com-access.log" common
#/VirtualHost#


把#號換為< 或者 >


<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "D:\wamp\www\專案名
"
    ServerName my.xiangmu.com
    ErrorLog "logs/dummy-host2.example.com-error.log"
    CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>



。。。。。。可以寫多個虛擬主機。。。。。。。