[英]Flask Application is not getting deployed at AWS elastic beanstalk
[英]Getting a '403 Forbidden' error on deploying a Laravel application to AWS Elastic Beanstalk
我已将 Laravel 应用程序部署到 AWS Elastic Beanstalk。 但是,在导航到应用程序的 URL 时,我看到了403 Forbidden
错误。
我的/var/log/nginx/error.log
最后两行如下。
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"
我该如何解决这个问题?
allow 192.168.1.1;
deny all;
配置意味着只有192.168.1.1可以访问。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.