dtu1747 2015-11-20 09:06
浏览 62
已采纳

Laravel5只显示linux中的默认页面...同样适用于windows

Maybe I miss something small , but I really get lost in here. I made a virtual host to tun laravel: I've created file in etc/apache2/site-available:

<VirtualHost *:80>
ServerName  laravel5.local
DocumentRoot "/var/www/ProjectFiles/NewProjects/laravel/public"
<Directory "/var/www/ProjectFiles/NewProjects/laravel/public">
 AllowOverride All
</Directory>
</VirtualHost>

And in site-enabled this is enabled In etc/hosts I've: 127.0.0.1 laravel5.local

So: "laravel5.local" shows laravel5 default page. "laravel5.local/index.php" shows the same.

The problem is that I've changed this page (welcome blade) And if I try this : "localhost/ProjectFiles/NewProjects/Laravel/public/" I see the change I've made

Please note that if I do : php artisan serve and try on "localhost:8000" I still do not see that change, so the problem should not be in a mistake made in the virtualhost. And the strangest thing is that all this works perfect in Windows. Thanks in advance

P.S. and php artisan route:clear do not help

  • 写回答

1条回答 默认 最新

  • duanfa2014 2015-11-20 09:42
    关注

    In your VirtualHost section you wrote /laravel/ with lower case L in the text with localhost you wrote it with upper case L. Make sure you have the right upper/lower case in Linux.

    Windows doesn't care about it but Linux does!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效