laravel - 404 在服务器上发布后找不到 laravel 5.2
问题描述
在 ubuntu 服务器 16.04 上部署项目后,在 laravel 5.2 上找不到错误 404
我授予了存储权限,我也在项目的公共文件夹中创建了虚拟主机及其目录
Not Found
The requested URL /login was not found on this server.
Apache/2.4.18 (Ubuntu) Server at www.xxx.com Port 80
laravel 主页显示,但没有什么比登录和注册更有效
解决方案
i got the answer
you should run this on server:
a2enmod rewrite
that worked perfectly! xD
推荐阅读
- postgresql - 你能描述一下这个FlameGraph(Postgres,RHEL7)为什么CPU等待和阻塞进程吗
- optaplanner - OptaPlanner 是否支持获取计算进度?
- angular - 在使用 ng 命令在谷歌驱动器中使用 angular cli 创建 angular 项目时
- typescript - Phaser 3 图像重叠
- amazon-web-services - Buildspec 文件发布构建存储构建号并在运行时访问它
- rust - Rayon 的并行迭代器与 Rust 中的 ureq 阻塞 HTTP 之间的交互是什么?
- rust - 不阻塞地读取 Childstdout
- android - Matomo Harmony/华为操作系统
- sql - 需要从完成中获得第一个成功完成日期
- vuejs2 - 如何在 Nuxt 本地托管谷歌字体