wampserver3.0.6 外网 不能访问

时间:2023-03-09 16:08:11
wampserver3.0.6 外网 不能访问

# 开始

  今天在服务器上安装了wampserver3.0.6 然后在我的电脑浏览器上面打开服务器ip提示 Forbidden 下面一行小字提示没有权限访问"/"目录

# 解决

  打开 httpd-vhost.conf 文件 修改成如下

    wampserver3.0.6 外网 不能访问

# Virtual Hosts
# <VirtualHost *:>
ServerName localhost
ServerAlias localhost
DocumentRoot c:/wamp/www
<Directory "c:/wamp/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
#

  然后保存 重启服务即可

# Virtual Hosts#
<VirtualHost *:80>ServerName localhostServerAlias localhostDocumentRoot c:/wamp/www<Directory  "c:/wamp/www/">Options +Indexes +Includes +FollowSymLinks +MultiViewsAllowOverride AllRequire all granted</Directory></VirtualHost>#