Home  >  Article  >  Backend Development  >  Laravel HTTPS 环境下路由Not Found

Laravel HTTPS 环境下路由Not Found

WBOY
WBOYOriginal
2016-06-06 20:11:221423browse

环境:
ubuntu + apache2 + Laravel5.1

现象:
https://..../../ 可正常访问 (index.html/index.php)

https://..../../test.php apache报错 Not Found

请问 Apache 或 php 需要哪些设置 ?

回复内容:

环境:
ubuntu + apache2 + Laravel5.1

现象:
https://..../../ 可正常访问 (index.html/index.php)

https://..../../test.php apache报错 Not Found

请问 Apache 或 php 需要哪些设置 ?

问题解决了,Apache 需要mods-enabled里加载 mods-available中的rewrite.load文件,就可以解决laravel路由在https下的访问问题。

谢谢楼下 :D

laravel的路由不应该在route.php里单独配置嘛

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn