Wampserver 3.0.6 64bit - 403 Forbidden

时间:2016-10-10 18:14:44

标签: wamp wampserver http-status-code-403

无论我做什么,都无法通过公共IP地址访问本地wamp。 我收到以下错误消息。

禁 您无权访问/在此服务器上。 Apache / 2.4.23(Win64)PHP / 5.6.25服务器(我的公共IP)端口80

下面我已经粘贴了应该对此进行规范的httpd.cong部分。 基本上一切似乎都很好。

Wampserver使用自己的菜单项在线。

enter image description here

我尝试将下面的代码插入到目录设置中,但没有帮助。

Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all

我缺少什么? 谢谢。

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
</Directory>

@ RiggsFolly-如果你已经阅读了我的问题,你就会知道它与你标记为重复的那个没有关系。 我不是在问为什么菜单项不可见......

1 个答案:

答案 0 :(得分:10)

如果您有一个已经制作的虚拟主机文件,那么put online菜单项不会对其进行必要的更改。 在vhosts文件中将需要本地更改为要求所有已授予修复此问题。 奇怪....

# Virtual Hosts
#

<VirtualHost *:80>
    ServerName localhost
    DocumentRoot F:/wamp64/www
    <Directory  "F:/wamp64/www/">
        Options +Indexes +Includes +FollowSymLinks +MultiViews
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>
#