美文网首页
laravel项目 外网访问出现 forbidden 问题

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

作者: CarLosKnight | 来源:发表于2017-08-21 17:01 被阅读0次
打开安装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>
#

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

相关文章

网友评论

      本文标题:laravel项目 外网访问出现 forbidden 问题

      本文链接:https://www.haomeiwen.com/subject/toqhdxtx.html