課程
/后端開發(fā)
/PHP
/PHP入門篇
DocumentRoot "${INSTALL_DIR}/www"<Directory "${INSTALL_DIR}/www/"> ?? 怎么辦
2018-05-05
源自:PHP入門篇 2-3
正在回答
先找到httpd-vhosts.conf,修改DocumentRoot和Directory,如下:
D:\wampserver\bin\apache\apache2.4.37\conf\extra??? //一般httpd-vhosts.conf 的路徑
#? DocumentRoot "${INSTALL_DIR}/www"?? //默認(rèn)的路徑? DocumentRoot "d:/Demo"?? //自定義,根據(jù)你自己設(shè)的目錄?# <Directory "${INSTALL_DIR}/www/">? //同上?<Directory "d:/Demo">? //同上
然后修改httpd.config,同理把默認(rèn)的注釋掉,改成自定義的就行了
#DocumentRoot "${INSTALL_DIR}/www"DocumentRoot "d:/Demo"#<Directory "${INSTALL_DIR}/www/"><Directory "d:/Demo">
我也遇到,改現(xiàn)有目錄后,apache干脆無法啟動(dòng)。取消virtual host 也沒用。。。只能還原 httpd.conf ,去更改httpd-vhosts.conf.而后成功
我也遇到同樣的問題,但是沒有懂具體怎么搞
${INSTALL_DIR}? 默認(rèn)你的安裝目錄? 修改 為現(xiàn)在的目錄就行了
Paul20
舉報(bào)
PHP入門教程輕松學(xué)習(xí),行業(yè)大牛幫您快速掌握PHP編程基礎(chǔ)知識(shí)。
1 回答${INSTALL_DIR}/www
1 回答DocumentRoot "${INSTALL_DIR}/www"這個(gè)怎么改啊我的
6 回答修改了${INSTALL_DIR}/www/還是不行
3 回答在http.conf中改路徑時(shí)DocumentRoot "${INSTALL_DIR}/www/"是改這個(gè)嗎?
3 回答根目錄文件里面的現(xiàn)實(shí)是DocumentRoot "${INSTALL_DIR}/www",不是老師步驟中 的DocumentRoot "F:/WAMP/www"?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2019-04-23
先找到httpd-vhosts.conf,修改DocumentRoot和Directory,如下:
D:\wampserver\bin\apache\apache2.4.37\conf\extra??? //一般httpd-vhosts.conf 的路徑
#? DocumentRoot "${INSTALL_DIR}/www"?? //默認(rèn)的路徑
? DocumentRoot "d:/Demo"?? //自定義,根據(jù)你自己設(shè)的目錄
?# <Directory "${INSTALL_DIR}/www/">? //同上
?<Directory "d:/Demo">? //同上
然后修改httpd.config,同理把默認(rèn)的注釋掉,改成自定義的就行了
#DocumentRoot "${INSTALL_DIR}/www"
DocumentRoot "d:/Demo"
#<Directory "${INSTALL_DIR}/www/">
<Directory "d:/Demo">
2018-06-25
我也遇到,改現(xiàn)有目錄后,apache干脆無法啟動(dòng)。取消virtual host 也沒用。。。只能還原 httpd.conf ,去更改httpd-vhosts.conf.而后成功
2018-06-22
我也遇到同樣的問題,但是沒有懂具體怎么搞
2018-05-06
${INSTALL_DIR}? 默認(rèn)你的安裝目錄? 修改 為現(xiàn)在的目錄就行了