OHS Is Listening On 443 But Clients Can't Connect (Doc ID 2212881.1)

Last updated on JUNE 16, 2017

Applies to:

Java Cloud Service - Version 14.1 to 14.1
Information in this document applies to any platform.

Symptoms

ERROR
OHS is listening on 443 but clients can't connect

When running OHS in a JCS instance, clients (chrome/firefox/curl) are unable to reach OHS on port 443 though 443 is open and server is listening on 443.

However, when we use 8002 port, clients are able to reach OHS.


To OHS be listened on 443 for https we followed the steps described here:
(special configuration is required to allow Oracle HTTP Server to bind to privileged ports.)

https://docs.oracle.com/cloud/latest/jcs_gs/JSCUG/GUID-EDC1BD9B-1C42-4220-8163-4B27AADDA98F.htm#JSCUG3404

OHS is able to start successfully when listened on 443. Success entry from OHS logs:

[2016-12-10T08:11:39.0485+00:00] [OHS] [NOTIFICATION:16] [OHS-9999] [core.c] [host_id: latojcs-wls-1] [host_addr: 10.xxx.xx.xx] [pid: 19182] [tid: 139695193614144] [user: oracle] [VirtualHost: main] Oracle-Application-Server-12c/12.1.2.0.0 Oracle-HTTP-Server (Unix) mod_ssl/11.0.0.0.0 OtherSSL/0.0.0 mod_plsql/11.1.1.0.0 configured -- resuming normal operations

Directive used in ssl.conf of apache:
Listen *:443

443 port is open in Access Rules.

----------------------------------------------------------------------------------------------------------
Other information before doing configuration:
We earlier faced following issue before doing special configuration to allow Oracle HTTP Server to bind to privileged ports.
[2016-12-09T20:12:50.5621+00:00] [OHS] [INCIDENT_ERROR:32] [OHS-9999] [worker.c] [host_id: latojcs-wls-1] [host_addr: 10.xxx.xx.xx] [pid: 1853] [tid: 140477742012224] [user: oracle] [VirtualHost: main] (13)Permission denied: make_sock: could not bind to address 0.0.0.0:443

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