# 开始

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

 

# 解决

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

    wampserver3.0.6 外网 不能访问

# 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>#

相关文章:

  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2021-11-27
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-08
  • 2021-06-24
  • 2021-08-30
  • 2022-12-23
  • 2021-11-10
  • 2022-12-23
相关资源
相似解决方案