laravel项目 外网访问出现 forbidden 问题

2017-08-21  本文已影响0人  CarLosKnight
打开安装wampserver的目录

我安装的目录是D盘

D:\wamp64\bin\apache\apache2.4.23\conf\extra\httpd-vhosts.conf  

文件下把里边的代码修改成下边的这样

# Virtual Hosts
#

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

不需要别的东西就这样就好

上一篇 下一篇

猜你喜欢

热点阅读