laravel 5.1对除('/')以外的所有其他路由表示使用ec2在线Amazon服务器上找不到404页面
Hi i have installed the laravel on ec2 instance using this video
www.youtube.com/watch?v=8ARpTKWc6lQ
I have changed the document root path from /var/www
to /var/www/html/laravel/public
in the deafult.conf file as described at the end of the video
But now my when i open my website my homepage http://52.26.133.246/ which have ('/')
shows fine but when i open my other page with routes like ('AdminApp')
or you can simple click on admin link on the navbar of home page with whole link is http://52.26.133.246/AdminApp it says
404 page not found
and also
The requested URL /AdminApp was not found on this server.
but when i use /index.php in the url the page is shown here is the link http://52.26.133.246/index.php/AdminApp
Also kindly check this link also to without index.php
http://52.26.133.246/welcome
with index.php
http://52.26.133.246/index.php/welcome
Kindly help me. Thanks
您好我已经使用此视频在ec2实例上安装了laravel p>
www.youtube.com/watch?v=8ARpTKWc6lQ p>
我在deafult.conf文件中将文档根路径从 但 当我在网址中使用/index.php页面显示时\链接
http:// 52.26.133.246/index.php/AdminApp p>
如果没有 index.php p>
亲切地帮助我。
谢谢 p>
div> / var / www code>
更改为
/ var / www / html / laravel / public code>
正如视频结尾所述
但现在我打开我的网站时,我的主页 http://52.26。 133.246 / 有('/') code>显示正常,但当我用
('AdminApp') code>等路径打开我的其他页面时,你可以简单点击 主页导航栏上带有完整链接的管理员链接是 http://52.26.133.246/AdminApp ,它说
404页面未找到 code>
and p>
在此服务器上找不到请求的URL / AdminApp。
代码> PRE>
index.php code> p>
,请同时查看此链接
http://52.26.133.246/welcome
code> pre>
nn http://52.26.133.246/index.php/welcome
Try sudo a2enmod rewrite
and
Check your etc/httpd/conf/httpd.conf file. It should have the following in it:
AllowOverride None
change it to
AllowOverride All