https://bz.apache.org/bugzilla/show_bug.cgi?id=58147
Bug ID: 58147
Summary: Getting 502 BadGateway on response
Product: Apache httpd-2
Version: 2.4.12
Hardware: Other
OS: Linux
Status: NEW
Severity: major
Priority: P2
Component: mod_proxy
Assignee: [email protected]
Reporter: [email protected]
When apache sends back the response to the server from where it got request, it
always gives 502 bad Gateway. I checked the packets which apache receives and
it's a 200OK. below is the data ascii data from erroneous packet
<closeConnection />HTTP/1.1 502 Bad Gateway
Date: Thu, 16 Jul 2015 14:46:54 GMT
Server: Apache
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
Expires: Thu, 16 Jul 2015 14:46:54 GMT
e8
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>502 Bad Gateway</title>
</head><body>
<h1>Bad Gateway</h1>
<p>The proxy server received an invalid
response from an upstream server.<br />
</p>
</body></html>
0
I also checked the normal response which i get when not using apache, i see
difference as below
<getAllData />HTTP/1.1 202 Accepted
Date: Thu, 16 Jul 2015 20:17:01 GMT
Server: example/1.2
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
Content-Type: application/octet-stream
Vary: Accept-Encoding
Transfer-Encoding: chunked
24
....................................
0
the above response is when apache is used.
<getAllData />HTTP/1.1 202 Accepted
Date: Thu Jul 16 20:17:01 2015
Server: example/1.2
Transfer-Encoding: chunked
Content-Type: application/octet-stream
24;status_update=Yes
....................................
0
the above is when apache is not used.
Below is the configuration
SetEnv keepalive on
SetEnv proxy-sendchunked 0
Include conf/extra/httpd-default.conf
ProxyRequests off
SetEnv proxy-sendextracrlf 1
SetEnv proxy-sendcl
ProxyPreserveHost On
ProxyPass / http://10.10.10.10:80/xyz connectiontimeout=60 timeout=60
ProxyPassReverse / http://10.10.10.10:80/xyz
Could anybody provide any help on this.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]