Java 502代理|谁是Wildfly、Spring Boot或Httpd的罪魁祸首?|来自上游服务器的响应无效
我们不确定它是Wildfly服务器、Spring Boot应用程序、HTTPD还是其他什么Java 502代理|谁是Wildfly、Spring Boot或Httpd的罪魁祸首?|来自上游服务器的响应无效,java,spring,spring-boot,wildfly,httpd.conf,Java,Spring,Spring Boot,Wildfly,Httpd.conf,我们不确定它是Wildfly服务器、Spring Boot应用程序、HTTPD还是其他什么 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html> <head> <title>502 Proxy Error</title> </head> <body> <h1>Proxy Error</h1>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>502 Proxy Error</title>
</head>
<body>
<h1>Proxy Error</h1>
<p>The proxy server received an invalid
response from an upstream server.<br />
The proxy server could not handle the request
<em><a href="/terp-offerings-rest-0.0.1-SNAPSHOT-wildfly10/offerings/all">GET /terp-offerings-rest-0.0.1-SNAPSHOT-wildfly10/offerings/all</a></em>.
<p>
Reason: <strong>Error reading from remote server</strong></p>
</p>
</body>
</html>
但同样的错误是徒劳的
以下是我在wildfly中尝试的:
Profile -> servergroup -> Undertow -> Server -> AJP/HTTP/HTTPS (Changed norequesttimeout to 600000 and readtimeout to 600000
没有得到任何东西….以及上述设置 在HTTPD.CONF中添加了以下内容
Timeout 300
ProxyTimeout 300
ProxyBadHeader Ignore
它成功地工作了。这里没有显示问题所在,添加日志,在代理过滤之前显示响应
Profile -> servergroup -> Undertow -> Server -> AJP/HTTP/HTTPS (Changed norequesttimeout to 600000 and readtimeout to 600000
Timeout 300
ProxyTimeout 300
ProxyBadHeader Ignore