【发布时间】:2020-12-12 10:42:09
【问题描述】:
我在将 Laravel 项目部署到 AWS 时遇到此错误
404 Not Found nginx/1.18.0
我按照这个question 并在项目的主目录中创建了这个路径,但仍然存在错误!
.platform/nginx/conf.d/elasticbeanstalk/laravel.conf
在laravel.conf内:
location / {
try_files $uri $uri/ /index.php?$query_string;
gzip_static on;
}
【问题讨论】:
标签: php laravel amazon-web-services nginx