xamp目錄》apache>conf>extra>httpd-vhosts.conf
vhost.conf其中給的一些例子,我們寫的時候需要去掉『#』號,『#』表示注釋的意思。
通常我們只需要配置documentroot和servername兩個就好了。####serveradmin webmaster@dummy-host.example.com
##documentroot "c:/xampp/htdocs/dummy-host.example.com"
##servername dummy-host.example.com
##serveralias www.dummy-host.example.com
##errorlog "logs/dummy-host.example.com-error.log"
##customlog "logs/dummy-host.example.com-access.log" common
##
在windows系統盤裡 windows>system32>drivers>etc>hosts檔案documentroot "c:/xampp/htdocs/dummy-host.example.com"
servername dummy-host.example.com
127.0.0.1 dummy-host.example.com #你寫的servername
記得把專案檔案發在xamp目錄/htdocs下 xampp 虛擬主機配置
測試環境 xampp3.2.1 win7 一 基於埠的虛擬主機 1 apache配置檔案 httpd.conf 改動 a 搜尋 listen 增加兩個新埠 listen 8000 listen 8001 b 搜尋 vhosts 確保 include conf extra httpd vhosts.c...
XAMPP 虛擬主機配置
virtual hosts include conf extra httpd vhosts.conf 確保此段開頭沒有 d xampp cgi bin allowoverride all options none require all granted directory 修改為 d xampp c...
xampp配置虛擬主機
昨天下午瀏覽網頁的時候發現的xampp,看上去挺專業的。於是乎今天上午嘗試著使用了一下,感覺還不錯,剛剛配置了個虛擬主機。大體流程和wamp或是apache都差不多,把配置過程分享給大家。如果已經開啟了apache伺服器,先將其關掉。接下來進入配置虛擬主機 我這裡先專案放在了d盤,資料夾名稱proj...