[英]AWS error 404 Not Found nginx/1.18.0 in elastic beanstalk with laravel
I got this error when I deploy the Laravel project to AWS将 Laravel 项目部署到 AWS 时出现此错误
404 Not Found nginx/1.18.0
I follow this question and create this path in main dir of the project but still the error there!我按照这个问题并在项目的主目录中创建了这个路径,但仍然存在错误!
.platform/nginx/conf.d/elasticbeanstalk/laravel.conf
inside laravel.conf
:在
laravel.conf
:
location / {
try_files $uri $uri/ /index.php?$query_string;
gzip_static on;
}
确保文档根文件夹指向公共文件夹,而不是安装根文件夹
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.