WAMP - 禁止 - 您无权访问/在此服务器上

WAMP - Forbidden - You don't have permission to access / on this server

我正在尝试通过 Internet 访问我的 WAMP 网络服务器 (3.1.4),但我收到了权限错误,即使在完成了关于堆栈交换主题的所有已回答问题之后也是如此。

WAMP 设置为 "online" 并且是绿色的。我可以在我的主机上访问我的服务器,并且可以正常查看我的每个网页。我什至可以使用域名很好地查看和浏览网站,所以这不是问题。

我的防火墙在监听端口上打开了入站连接,我的路由器也为该端口启用了端口转发。

我已经授予httpd-vhosts.conf中的所有权限:

# Virtual Hosts
  <VirtualHost *:80>
  ServerName localhost
  ServerAlias localhost
  DocumentRoot "${INSTALL_DIR}/www"
  <Directory "${INSTALL_DIR}/www/">
    Options +Indexes +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require all granted
  </Directory>
</VirtualHost>


#
<VirtualHost *:80>
    ServerName example
    DocumentRoot "c:/wamp64/www/example"

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteRule ^index\.php$ - [L]
        RewriteCond  ^(index\.php)?$ [OR]
        RewriteCond  \.(gif|jpg|png|ico|css|js)$ [NC,OR]
        RewriteCond %{REQUEST_FILENAME} -f [OR]
        RewriteCond %{REQUEST_FILENAME} -d
        RewriteRule ^(.*)$ - [S=1]
        RewriteRule . /index.php [L]
    </IfModule>
    # END wordpress

    <Directory  "c:/wamp64/www/example/">
        Options +Indexes +Includes +FollowSymLinks +MultiViews
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

我已授予 httpd.conf 中的所有权限:

DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
    Options +Indexes +FollowSymLinks +Multiviews
    AllowOverride all

#   onlineoffline tag - don't remove
    Require all granted
</Directory>

我已授予 phpmyadmin.conf 中的所有权限:

Alias /phpmyadmin "c:/wamp64/apps/phpmyadmin4.8.3/"

<Directory "c:/wamp64/apps/phpmyadmin4.8.3/">
    Options +Indexes +FollowSymLinks +MultiViews
  AllowOverride all
  <ifDefine APACHE24>
        Require all granted
    </ifDefine>
    <ifDefine !APACHE24>
        Order Deny,Allow
        Allow from all
        Allow from ::1
    </ifDefine>

# To import big file you can increase values
  php_admin_value upload_max_filesize 128M
  php_admin_value post_max_size 128M
  php_admin_value max_execution_time 360
  php_admin_value max_input_time 360
</Directory>

我已授予主机文件中的所有权限:

127.0.0.1   localhost
::1 localhost
127.0.0.1   example.com
::1 example.com

编辑

我忘记在 httpd.conf 中显示附加设置:

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

原来域名没有重定向到我的主机,而是重定向到我购买域名的网站的 DNS。我设置的权限都没有问题,所以这是我不熟悉的替代方案。