将应用程序部署到AWS后出现502代理错误 [英] Getting 502 proxy error after deploying app to AWS

查看:246
本文介绍了将应用程序部署到AWS后出现502代理错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将应用程序部署到了AWS Elastic beantalk.尝试打开应用程序时,出现502代理错误说以下消息.

I deployed an Application to AWS elastic beanstalk. When I try to open the application, I am getting 502 proxy error Saying following message.

代理错误

代理服务器从上游服务器收到无效响应. 代理服务器无法处理请求GET/.

The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /.

原因:从远程服务器读取错误

Reason: Error reading from remote server

Apache/2.2.31(Amazon)服务器在mehe.us-west-2.elasticbeanstalk.com 端口80

Apache/2.2.31 (Amazon) Server at mehe.us-west-2.elasticbeanstalk.com Port 80

奇怪的是,当我从本地主机(仍连接到亚马逊数据库)运行应用程序时,该应用程序运行良好,但在取消部署后却无法运行.这是应用程序

Strange part is when I run the application from localhost(Still connected to amazon database) the application is working fine, but after deloying it is not working. Here's the link to application

任何摆脱它的想法.

推荐答案

HTTPD的超时值低于为ELB设置的超时值.在/etc/httpd/conf/httpd.conf

The timeout value for HTTPD is lower than the timeout value set for ELB. Change the timeout value in /etc/httpd/conf/httpd.conf

保持两次重启之间的价值,您将需要创建自定义AMI或使用.ebextensions 功能.

The keep the value between reboots you'll need to either create a custom AMI or use .ebextensions feature.

这篇关于将应用程序部署到AWS后出现502代理错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆