【laravel54】win系下本地域名配置(解决403错误)

1、apache虚拟目录地址应该指向\laravel54\public 目录下:(TP5类似)

<VirtualHost *:80>
DocumentRoot "D:\phpStudy\WWW\laravel54\public"
ServerName laravel54.com
ServerAlias 
<Directory "D:\phpStudy\WWW\laravel54">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>

 

posted @ 2018-03-28 21:05  PHP急先锋  阅读(218)  评论(0编辑  收藏  举报