AWS Elasticbeanstalk Nginx服务器抛出连接被拒绝错误

时间:2020-04-15 14:26:38

标签: spring-boot amazon-elastic-beanstalk

我正在运行一个Spring引导应用程序,该应用程序在Elasticbeanstalk环境的端口5000上运行。我也在表单登录中使用Spring安全性。登录验证后,我将重定向回登录页面。 如果我通过Postman提出请求并使用基本身份验证,那么我会得到结果。

检查日志时,出现以下错误:

----------------------------------------
/var/log/nginx/error.log
----------------------------------------
2020/04/15 13:08:33 [error] 7452#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 49.206.0.43, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "orderserviceapp-env.eba-mepqmsfm.ap-south-1.elasticbeanstalk.com"
2020/04/15 13:08:33 [error] 7452#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 49.206.0.43, server: , request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:5000/favicon.ico", host: "orderserviceapp-env.eba-mepqmsfm.ap-south-1.elasticbeanstalk.com", referrer: "http://orderserviceapp-env.eba-mepqmsfm.ap-south-1.elasticbeanstalk.com/"

0 个答案:

没有答案