1. 官方建議把 httpd.conf 裡面的

# Virtual hosts
#Include conf/extra/httpd-vhosts.conf

改成

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

然後在 httpd-vhosts.conf 裡面設定 VirtualHost

 

當然如果想直接加在 httpd.conf 也是可行的,只是管理上比較麻煩

 

設定方式如下

<VirtualHost www.xxx.com>

    DocumentRoot C:/AppServ/www/xxx
    ServerName www.xxx.com
</VirtualHost>

 

設定完以後記得叫您的DNS管理者新增一筆 A 紀錄對應到您的主機

arrow
arrow
    全站熱搜

    AwEi 發表在 痞客邦 留言(0) 人氣()