gpt4 book ai didi

php - android 你没有权限访问/在此服务器上 WAMP

转载 作者:行者123 更新时间:2023-11-29 14:30:25 25 4
gpt4 key购买 nike

我试图用我的 android 设备打开我的 wamp 服务器,但我得到“android 你没有权限访问/在此服务器上”apache 版本是 2.4.18。我试图修改 httpd.conf 但它不起作用.现在是这样的:

DocumentRoot "c:/wamp64/www"

<Directory "c:/wamp64/www/">
#
# 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

#
# 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
Order Deny,Allow
Allow from all

</Directory>

希望你能帮帮我

最佳答案

对于较新版本的 WampServer (3.0+),您不需要做两件事:

1) 修改文件httpd.conf 转到安装 wamp 的目录,例如

C:\wamp64\bin\apache\apache2.4.23\conf 并编辑以下内容:

DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
#
# 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 all granted

Require none 修改为 Require all granted

2) 现在转到 C:\wamp64\bin\apache\apache2.4.23\conf\extra\httpd-vhost.conf 并对为 localhost< 定义的虚拟主机做同样的更改/p>

AllowOverride All
Require all granted

重启服务器

关于php - android 你没有权限访问/在此服务器上 WAMP,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39338660/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com