Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/401.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 502代理|谁是Wildfly、Spring Boot或Httpd的罪魁祸首?|来自上游服务器的响应无效_Java_Spring_Spring Boot_Wildfly_Httpd.conf - Fatal编程技术网

Java 502代理|谁是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>

我们不确定它是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>
    <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&nbsp;/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