1 year ago
#357007
Thanhvanptit
Intermittent 502 error code on Apache http proxy
I am using Redhat 7 + Apache 2.4.6 to build web proxy. The issue is 502 error appear in error log, just intermittent.
[Thu Mar 31 01:57:07.080631 2022] [proxy_http:error] [pid 4619] (70014)End of file found: [client 127.0.0.1:57198] AH01102: error reading status line from remote server x.x.x.x [Thu Mar 31 01:57:07.080668 2022] [proxy:error] [pid 4619] [client 127.0.0.1:57198] AH00898: Error reading from remote server returned by /abc/xyz/
Listen *:8083
NameVirtualHost *:8083
LogFormat "%v %h %l %u %t \"%r\" %>s %b %{MySpecialHeader}i " my_special_format
<VirtualHost *:8083>
ProxyIOBufferSize 8192
ServerName mytest.com
ErrorLog logs/test_error_log
TransferLog logs/test_access_log
CustomLog logs/access_log_with_details my_special_format
LogLevel warn
SSLProxyEngine on
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
SetEnv proxy-initial-not-pooled 1
<Location "/test">
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
SetEnv proxy-initial-not-pooled 1
ProxyPass https://test.xyz.com:8443/test timeout=30 disablereuse=Off
ProxyPassReverse https://test.xyz.com:8443/test
</Location>
</VirtualHost>
My upstream is an AWS NLB, from server I tried curl to upstream is ok, no problem. But when try curl to localhost:8083 502 error intermittent happen.
Any guys can please help to advise.
Thanks
apache
apache2
redhat
intermittent
http-status-code-502
0 Answers
Your Answer