首先打開配置文件,路徑為「安裝apache的根目錄」\conf\httpd.conf 用文本編輯工具打開該文件。 查找 DocumentRoot有這麼一行
DocumentRoot"C:/Program Files/Apache Group/Apache2/htdocs"
這就是你網站的根目錄,你可以修改,也可以用默認的.如果改,還要修改下面這項,否則可能會出現 403 錯誤
查找 This should be changed to whatever you set DocumentRoot to
在它下面兩行有
[admin via ] Apache根目錄修改測試問題已經有616次圍觀