在httpd.conf中添加
DocumentRoot "C:/xampp/htdocs/blog/public"
<Directory />
Options +Indexes +FollowSymLinks +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
在httpd-vhosts.conf中添加
<VirtualHost *:80>
ServerAdmin xxx@test.com
DocumentRoot "C:/xampp/htdocs/blog/public"
ServerName www.test.com
ServerAlias
<Directory "C:/xampp/htdocs/blog/public">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
务必目录地址指向laravel框架的public下
