亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

wamp 自定義網站根目錄失敗,求教?

wamp 自定義網站根目錄失敗,求教?

PHP
慕粉4282406 2017-04-24 08:33:44
win10系統wamp3.0.6apache 2.4.23修改httpd.conf為:<Directory />??? AllowOverride none??? Require all denied</Directory>## Note that from this point forward you must specifically allow# particular features to be enabled - so if something's not working as# you might expect, make sure that you have specifically enabled it# below.#HostnameLookups Off## DocumentRoot: The directory out of which you will serve your# documents. By default, all requests are taken from this directory, but# symbolic links and aliases may be used to point to other locations.#DocumentRoot D:/Demo<Directory "D:/Demo">??? #??? # Possible values for the Options directive are "None", "All",??? # or any combination of:??? #?? Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews??? #??? # Note that "MultiViews" must be named *explicitly* --- "Options All"??? # doesn't give it to you.??? #??? # The Options directive is both complicated and important.? Please see??? # http://httpd.apache.org/docs/2.4/mod/core.html#options??? # for more information.??? #??? Options +Indexes +FollowSymLinks +Multiviews??? #??? # AllowOverride controls what directives may be placed in .htaccess files.??? # It can be "All", "None", or any combination of the keywords:??? #?? AllowOverride FileInfo AuthConfig Limit??? #??? AllowOverride all??? #??? # Controls who can get stuff from this server.??? ##?? onlineoffline tag - don't remove??? Require local</Directory>斜體部分修改后,無法訪問test.php文件<?phpecho "成功";?>
查看完整描述

3 回答

?
我是新手_請多指教

TA貢獻140條經驗 獲得超79個贊

不自定義根目錄問題也不大,直接就把項目放在默認是wamp/www下就好了

查看完整回答
反對 回復 2017-04-24
?
西蘭花偉大炮

TA貢獻376條經驗 獲得超318個贊

你是從demo文件夾去訪問的嗎?
查看完整回答
反對 回復 2017-04-24
  • 3 回答
  • 2 關注
  • 1998 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號