<VirtualHost *:80>
DocumentRoot "E:\laravel\laravel\public"
ServerName l.com
ServerAlias l1.com
<Directory "E:\laravel\laravel\public">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
4 个回复
Jachase
赞同来自:
ty0716
赞同来自:
痞子
赞同来自:
一、apache虚拟目录(你百度下)
二、 使用路由组
这样就是你要的效果了,当然设置apache根路径为:laravel/public
Yingdynasty
赞同来自:
哈哈哈 不谢~