Laravel5配置问题
安装完成后,设置首页为server.php,项目文件却在public下,该如何配置 访问localhost就是访问项目文件了? 而不需要localhost/public
我的vhost配置文件:
<VirtualHost *:80>
DocumentRoot "F:\laravel"
ServerName t.com
ServerAlias t1.zy62.com
<Directory "F:\laravel>
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
椰椰椰椰子子子
10 years, 3 months ago
Answers
已解决:
DocumentRoot "F:\laravel\public" 即可
<VirtualHost *:80>
DocumentRoot "F:\laravel\public"
ServerName t.com
ServerAlias t1.zy62.com
<Directory "F:\laravel>
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
欢迎你扑街
answered 10 years, 3 months ago