# 开始
今天在服务器上安装了wampserver3.0.6 然后在我的电脑浏览器上面打开服务器ip提示 Forbidden 下面一行小字提示没有权限访问"/"目录
# 解决
打开 httpd-vhost.conf 文件 修改成如下
# Virtual Hosts # <VirtualHost *:80> 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>#