android你没有权限访问/在这个服务器WAMP上

Jt1*_*995 1 php apache android wampserver

我试图用我的Android设备打开我的wamp服务器,但我得到"你没有权限访问/在这个服务器上的Android"apache版本是2.4.18.i尝试修改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>
Run Code Online (Sandbox Code Playgroud)

我希望你能帮帮我

小智 8

对于较新版本的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
Run Code Online (Sandbox Code Playgroud)

Edit(编辑)要求没有要求所有批准

2)现在转到C:\wamp64\bin\apache\apache2.4.23\conf\extra\httpd-vhost.conf对localhost定义的虚拟主机进行相同的更改

AllowOverride All
Require all granted
Run Code Online (Sandbox Code Playgroud)

重启它应该工作的服务器