调试laveral代码遇到403 错误

友链

解决方法就是在vhost.conf中创建一个虚拟主机,根目录是laveral的public目录

<VirtualHost *:80>
     ServerName laravelht.vn
     DocumentRoot  C:/phpStudy/PHPTutorial/WWW/asd/laravel/public
     SetEnv APPLICATION_ENV "development"
     <Directory C:/phpStudy/PHPTutorial/WWW/asd/laravel/public>
         DirectoryIndex index.php
         AllowOverride All
         Require all granted
         Order allow,deny
         Allow from all
     </Directory>
 </VirtualHost>

你可能感兴趣的:(安全,PHP,笔记)