android 您无权访问此服务器上的 / WAMP

android you don't have permission to access / on this server WAMP

我试图用我的 android 设备打开我的 wamp 服务器,但我得到 "android you don't have permission to access / on this server" apache 版本是 2.4。18.i 试图修改 httpd.conf 但它没有 work.Now 是这样的:

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

编辑要求none要求全部授予

2) 现在转到 C:\wamp64\bin\apache\apache2.4.23\conf\extra\httpd-vhost.conf 并对为 localhost

定义的虚拟主机做同样的更改
AllowOverride All
Require all granted

重新启动服务器它应该工作