使用 TOMCAT 和 ORDS 为 apex 配置 SSL

问题描述 投票:0回答:0

我需要配置 SSL 以使用 https 访问 APEX 应用程序,我将它们部署在 tomcat 上。 但是当我使用 ssl 访问部署在 tomcat 上的应用程序时,出现 500 内部服务器错误。

使用

https://tomcatserver.domain/abc? -- 给出 500 内部服务器错误。 http://tomcatserver.domain/abc? - 工作正常。 https://tomcatserver.domain? -- 只有没有部署应用程序的 tomcat 才能正常工作。

我有

APEX 23.1 订单 20.2.1 雄猫:9.0.46

我的应用程序已经在 http 上运行,使用 tomcat 和 ords 没有任何问题。

要配置SSL,首先我在Tomcat中配置SSL(通过编辑server.xml) 一切顺利,我可以使用 https 访问 tomcat 应用服务器的 URL

我在 server.xml 中添加以下内容

<Connector 
        port="443" 
        protocol="org.apache.coyote.http11.Http11NioProtocol" 
        SSLEnabled="true" scheme="https" secure="true" 
        maxHttpHeaderSize="8192" 
        maxThreads="200" minSpareThreads="10" 
        enableLookups="false" 
        disableUploadTimeout="true" 
        acceptCount="100" 
        acceptorThreadCount="2" 
        compression="on" 
        URIEncoding="UTF-8" 
        > 
    <SSLHostConfig> 
        <Certificate 
            certificateKeystoreFile="somepath\qwas.pfx" 
            certificateKeystorePassword="******" 
            certificateKeystoreType="PKCS12" 
            /> 
    </SSLHostConfig> 
</Connector>

现在我将以下内容添加到 C:\Program Files\Apache Software Foundation\Tomcat 9 中的 web.xml 中。

ssl tomcat oracle-apex apex oracle-ords
© www.soinside.com 2019 - 2024. All rights reserved.