502 proxy error on deployment(部署时出现 502 代理错误)
问题描述
我现在正在开发一个 Java Web 项目.它在使用 eclipse 和 Tomcat 的本地主机上运行良好.但是当我将war文件部署到远程服务器(也是tomcat)时,前端的一个函数返回502代理错误.
I am now working on a Java web project. It works well in local host using eclipse and Tomcat. But when I deploy the war file to remote server (which is also tomcat), one function at front end return 502 proxy error.
该函数请求我部署的服务器,该服务器将进一步请求另一个远程服务器.整个过程大约需要 2 分钟.我还检查了部署日志.除了返回前端,服务器似乎运行良好.
The function requests the server that I deployed and the server will further request another remote server. The whole process will take around 2 minutes. I also check the deployment log. It seems that the server is working well except for returning to front end.
有没有人遇到过类似的问题?
Does anyone have similar problem before?
推荐答案
我只是自己解决问题.增加代理超时有效.
I just solve the problem by myself. Increasing the proxy timeout works.
这篇关于部署时出现 502 代理错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:部署时出现 502 代理错误


基础教程推荐
- 减少 JVM 暂停时间 >1 秒使用 UseConcMarkSweepGC 2022-01-01
- Java Keytool 导入证书后出错,"keytool error: java.io.FileNotFoundException &拒绝访问" 2022-01-01
- 设置 bean 时出现 Nullpointerexception 2022-01-01
- 无法使用修饰符“public final"访问 java.util.Ha 2022-01-01
- FirebaseListAdapter 不推送聊天应用程序的单个项目 - Firebase-Ui 3.1 2022-01-01
- “未找到匹配项"使用 matcher 的 group 方法时 2022-01-01
- 降序排序:Java Map 2022-01-01
- Java:带有char数组的println给出乱码 2022-01-01
- 如何使用 Java 创建 X509 证书? 2022-01-01
- 在 Libgdx 中处理屏幕的正确方法 2022-01-01