openshift wildfly将所有myrequest重定向到端口8443而不是443

时间:2017-02-18 03:02:06

标签: ssl configuration openshift wildfly-10

我在openshift上的应用程序上安装了ssl证书。它在Wildfly 10上运行。我想将所有http请求重定向到Https,谷歌搜索后,我被告知要添加

<security-constraint>
    <display-name>HTTPS</display-name>
    <web-resource-collection>
        <web-resource-name>https</web-resource-name>
        <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <user-data-constraint>
        <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
</security-constraint>

到web.xml以及此处描述的所有步骤https://developers.openshift.com/faq/troubleshooting.html#_how_do_i_redirect_traffic_to_https

之后,当我输入http://example.com时,我会被重定向到https://www.example.com:8443/而不是https://www.example.com:443/

请帮忙

0 个答案:

没有答案