Xampp中的Laravel [英] Laravel in Xampp

查看:123
本文介绍了Xampp中的Laravel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我已经安装了laravel 5.2,但是我的主页没有显示在"localhost"地址.它显示在本地主机/公共"地址.我已将所有文件安装在htdocs文件夹中.为什么出现此公开"内容?

Recently I have installed laravel 5.2 but my home page is not showing at 'localhost' address. It is showing at 'localhost/public' address. I have installed the all files in htdocs folder.Why this 'Public' thing showing up?

推荐答案

假设您将xampp安装在默认位置,则httpd.conf文件应在此处可用:

Assuming you installed xampp in the default location, a httpd.conf file should be available here:

C:\ xampp \ apache \ conf \ httpd.conf

C:\xampp\apache\conf\httpd.conf

寻找2条相邻的线:

DocumentRoot "C:/xampp/htdocs"
<Directory "C:/xampp/htdocs">

并更改它们以指向laravel的公用文件夹:

And change them to point to laravel's public folder:

DocumentRoot "C:/xampp/htdocs/public"
<Directory "C:/xampp/htdocs/public">

这篇关于Xampp中的Laravel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆