OHS 502 Bad Gateway When Atttempting To Reverse Proxy Using SSL (Doc ID 2212771.1)

Last updated on DECEMBER 12, 2016

Applies to:

Oracle HTTP Server - Version 11.1.1.7.0 and later
Information in this document applies to any platform.

Symptoms

On : 11.1.1.7.0 version, Apache Web Server Attempting to reverse proxy to SSL server fails with 502 Bad Gateway

Request flow
--------------
Portal Application ----- HTTP ------> OHS -------- HTTPS -------- <PROXY_SERVER>

When the application is accessed, it is giving 502 bad gateway error

< HTTP/1.1 502 Bad Gateway
< Date: Fri, 09 Dec 2016 13:50:13 GMT
< Content-Length: 254
< Content-Type: text/html; charset=iso-8859-1
<

502 Bad Gateway

Bad Gateway
The request could not be processed. An invalid response was received by the proxy or gateway server.

 

The ohs log file shows the following errors:

[2016-12-09T19:13:11.9219+05:30] [OHS] [ERROR:32] [OHS-2077] [core.c] [host_id: myohshost] [host_addr: 10.10.10.10] [tid: 140264457246464] [user: oraapp] [ecid: 005GnbjORuU7u10Lvy_AiX0009K6000003] [rid: 0] [VirtualHost: main] nzos proxy handshake error, nzos_Handshake returned 29024(server server.com 80, client IP)

[2016-12-09T19:13:11.9220+05:30] [OHS] [ERROR:32] [OHS-2171] [core.c] [host_id: myohshost] [host_addr: 10.10.10.10] [tid: 140264457246464] [user: oraapp] [ecid: 005GnbjORuU7u10Lvy_AiX0009K6000003] [rid: 0] [VirtualHost: main] NZ Library Error: Invalid X509 certificate chain [Hint: the client probably doesn't provide a valid client certificate]

 



 

Changes

The following is the proxy server configuration done for this request

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms