Wamp 服务器:更改 apache 的 httpd.conf?

2023-12-06

我正在尝试解决我的错误,我无法从服务器连接到我的 Android 应用程序。

所有来源都将我引向以下教程作为解决方案。

我已成功完成本教程中的所有步骤,除了:

编辑Wamp服务器的httpd.conf文件

IE。该教程说明了以下内容:

4.在httpd.conf文件中找到这部分配置:

Directory “c:/wamp/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.2/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:
# Options FileInfo AuthConfig Limit
#
AllowOverride all

#
# Controls who can get stuff from this server.
#



 # onlineoffline tag – don’t remove
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1

现在找到“127.0.0.1”并将其替换为“全部”,保存文件并重新启动 wamp 服务器。

然而,我的问题是我没有这个代码 within 我的 httpd.conf文件。我的相应部分如下所示:

<Directory "c:/wamp/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
    Require all granted
</Directory>

我可以在代码中更改什么来解决这个问题?

一个解决方案将不胜感激,我现在​​已经被服务器问题困扰了一个多星期了:(


知道这已经很旧了,但它可以减轻某人在尝试修复“禁止王国错误”时所经历的压力,该错误让我在谷歌上扭动手指......这就是 403 错误,以防你错误地认为你不知道什么我说的是。如果你这么做了,那就太棒了,太热了! *单击系统托盘上的 WAMP 服务器图标(我假设您使用的是 Windows),然后 ->Apache-> httpd.vhosts.conf [打开“httpd.vhosts.conf”文件] *并将目录标记(...)中的“需要本地”更改为“需要所有已授予” .这应该就是您要找的炸弹! *再次单击WAMP图标并重新启动所有服务,最后将其置于在线状态。最后,额外的最后,你很好2走吧!

注意: 这绝对应该有效 4 你尤其是在遵循在线教程如何通过修改防火墙设置(即通过添加新规则)并按照说明修改 httpd.conf 文件将 Android 设备连接到 Wamp 服务器之后,你仍然收到“禁止错误”代号 403。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Wamp 服务器:更改 apache 的 httpd.conf? 的相关文章

随机推荐