Score:0

Apache reverse proxy 2.4

si flag

We are configuring apache 2.4 for our reverse proxy.

<VirtualHost vhost:8008>
ServerName vhost
LogLevel trace8
    HttpProtocolOptions Unsafe
    SSLProxyEngine On
    SSLProxyCACertificateFile ${SSL_PROXY_CA_CERT_FILE}
    SSLProxyVerify none
    #SSLProxyVerifyDepth 3
    SSLProxyMachineCertificateFile ${SSL_PROXY_MACHINE_CERT_FILE}
    SSLOptions +ExportCertData
#
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
ProxyAddHeaders off
ProxyPreserveHost off

#
    <Proxy *>
    </Proxy>      
      ProxyPass        /vol.Out/    https://server:443/ Keepalive=On
      ProxyPassReverse /vol.Out/    https://server:443/
</VirtualHost>

Getting 502 error when we do a POST but we are able to get 200 when using GET request. Trying to connect from http (port 8008) to a remote server https site.

Error

[Mon Mar 07 14:15:24.154933 2022] [ssl:trace3] [pid 21941] ssl_engine_kernel.c(1780): [remote <RemoteServerIP>:443] OpenSSL: Loop: SSLv3 read finished A
[Mon Mar 07 14:15:24.154947 2022] [ssl:trace3] [pid 21941] ssl_engine_kernel.c(1775): [remote <RemoteServerIP>:443] OpenSSL: Handshake: done
[Mon Mar 07 14:15:24.154957 2022] [ssl:debug] [pid 21941] ssl_engine_kernel.c(1824): [remote <RemoteServerIP>:443] AH02041: Protocol: TLSv1.2, Cipher: ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
[Mon Mar 07 14:15:24.155378 2022] [core:trace6] [pid 21941] core_filters.c(525): [remote <RemoteServerIP>:443] core_output_filter: flushing because of THRESHOLD_MAX_BUFFER
[Mon Mar 07 14:15:24.164778 2022] [ssl:info] [pid 21941] (104)Connection reset by peer: [remote <RemoteServerIP>:443] AH01993: SSL output filter write failed.
[Mon Mar 07 14:15:24.164816 2022] [proxy:error] [pid 21941] (104)Connection reset by peer: [client <From7514>:51230] AH01084: pass request body failed to <RemoteServerIP>:443 (<serverhost>)
[Mon Mar 07 14:15:24.164824 2022] [proxy_http:error] [pid 21941] [client <From7514>:51230] AH01097: pass request body failed to <RemoteServerIP>:443 (<serverhost>) from <From7514> ()
[Mon Mar 07 14:15:24.164829 2022] [proxy:debug] [pid 21941] proxy_util.c(2224): AH00943: HTTPS: has released connection for (<serverhost>)

This is on Apache version Server version: Apache/2.4.6 (Red Hat Enterprise Linux)

[07/Mar/2022:14:15:24 -0500] "POST /vol.Out/HTTP/1.1" 502 232 "-" "-"
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.