Getting a '403 Forbidden' error on deploying a Laravel application to AWS Elastic Beanstalk

0

I have deployed a Laravel application to AWS Elastic Beanstalk. However, on navigating to the URL of the application I see a 403 Forbidden error.

The last two lines of my /var/log/nginx/error.log are as follows.

2022/11/21 08:23:20 [error] 3614#3614: *31864 directory index of "/var/www/html/" is forbidden, client: 172.31.39.157, server: , request: "GET / HTTP/1.1", host: "172.31.47.15"
2022/11/21 08:23:31 [error] 3614#3614: *31865 directory index of "/var/www/html/" is forbidden, client: 172.31.11.188, server: , request: "GET / HTTP/1.1", host: "172.31.47.15"

How do I resolve this issue?

已提问 2 年前148 查看次数
没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则