My Oracle Support Banner

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

Last updated on MAY 14, 2018

Applies to:

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


On : 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:] [tid: 140264457246464] [user: oraapp] [ecid: 005GnbjORuU7u10Lvy_AiX0009K6000003] [rid: 0] [VirtualHost: main] nzos proxy handshake error, nzos_Handshake returned 29024(server 80, client IP)

[2016-12-09T19:13:11.9220+05:30] [OHS] [ERROR:32] [OHS-2171] [core.c] [host_id: myohshost] [host_addr:] [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]




The following is the proxy server configuration done for this request



To view full details, 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 a vibrant support community of peers and Oracle experts.