My Oracle Support Banner

OHS正在443上进行监听,但客户端无法连接 (Doc ID 2387104.1)

Last updated on APRIL 27, 2018

适用于:

Java Cloud Service - 版本 14.1 到 14.1
本文档所含信息适用于所有平台

症状

错误
OHS正在443上进行监听,但客户端无法连接。

在JCS实例中运行OHS时,客户端(chrome / firefox / curl)无法连接OHS的443端口,但443端口处于打开状态并且服务器已经在443上进行侦听。

但是当我们使用8002端口时,客户端能够连接到OHS。


根据以下步骤可以配置OHS在在443端口提供https服务:
(需要特殊配置才能允许Oracle HTTP Server绑定到特权端口。)

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

通过以下日志确定OHS能够在443端口上成功进行监听:

[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.

----------------------------------------------------------------------------------------------------------
进行配置之前的其他信息:
在进行特殊配置以允许Oracle HTTP Server绑定到特权端口之前,可以会遇到以下错误:
[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

更改

 

原因

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.