大佬教程收集整理的这篇文章主要介绍了使用 LAMP (Ubuntu) 部署 Laravel:错误在此服务器上找不到请求的 URL,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我尝试第一次部署 Laravel 7 + LAMP (Ubuntu)。
我成功安装了 Laravel 存储库,我可以看到我的主页 (http://xx.xxx.xx.xxx/)。
但是当我尝试导航到该网站时,出现此错误: 在此服务器上找不到请求的 URL。
我认为我已经正确安装了 LAMP 和 Laravel。
数据库已设置,我已完成迁移。
问题可能出在 .htaccess 上,我在 repo 文件夹 (domain.it/repo
) 中设置了我的:
IfModule mod_rewrite.c>
# That was ONLY to protect you from 500 errors
# if your server dID not have mod_rewrite enabled
RewriteENGIne On
# RewriteBase /
# NOT needed unless you're using mod_alias to redirect
RewriteCond %{requEST_URI} !/public
RewriteRule ^(.*)$ public/$1 [L]
# Direct all requests to /public folder
</IfModule>
这就是我的 apache2 配置:
<VirtualHost *:80>
<Directory /var/www/HTML>
Options Indexes FollowSymlinks
AllowOverrIDe All
require all granted
</Directory>
Serveradmin social.legambIEntecapAnnori@gmail.com
Servername legambIEntecapAnnorIEpianalucchese.it
ServerAlias www.legambIEntecapAnnorIEpianalucchese.it
documentRoot /var/www/legambIEntecapAnnorIEpianalucchese.it/legambIEnte/public
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
啊,我已经
提前致谢
解决了:)
我为那些有同样问题的人写了解决方案
虚拟主机 conf 文件出现错误: /var/www/HTML 期权索引 FollowSymlinks 允许覆盖所有 要求所有授予
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)
以上是大佬教程为你收集整理的使用 LAMP (Ubuntu) 部署 Laravel:错误在此服务器上找不到请求的 URL全部内容,希望文章能够帮你解决使用 LAMP (Ubuntu) 部署 Laravel:错误在此服务器上找不到请求的 URL所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。