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 回答
- 2 關注
- 1998 瀏覽
添加回答
舉報
0/150
提交
取消