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!

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

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度