My Oracle Support Banner

502 Bad Gateway Error Thrown When Trying to Configure Reverse Proxy to SSL Resource While Retaining the Initial Access URL (Doc ID 2238243.1)

Last updated on AUGUST 14, 2020

Applies to:

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


When trying to access a resource on non-ssl port of the OHS which internally redirects to an SSL enabled backend server (retaining the initial non-ssl URL in the browser) , a 502 Bad Gateway Error is thrown.

The ohs1.log has the below entries during this time

In the above configuration, http://ohshostname:ohsport/newanalytics gets redirected to without any issue and the URL in the browser remains http://ohshostname:ohsport/newanalytics

However, http://ohshostname:ohsport/NetworkWide  fails to redirect to and throws "Bad Gateway Error" in the browser.



To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.