Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/blackberry/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在openshift的wildfly 8.1上强制使用https?_Https_Openshift_Wildfly - Fatal编程技术网

如何在openshift的wildfly 8.1上强制使用https?

如何在openshift的wildfly 8.1上强制使用https?,https,openshift,wildfly,Https,Openshift,Wildfly,所以我在openshift上运行这个应用程序,它使用wildfly 8.1盒带。 我想强制所有URL通过https而不是http Https工作正常,但我也可以使用http访问相同的页面。这就是我想要禁用的 我发现了这篇知识库文章: 但这并没有描述wildfly Specific的配置 这是我在openshift上从wildfly获得的standalone.xml配置:已修复 将以下内容添加到my web.xml中: <security-constraint> <web

所以我在openshift上运行这个应用程序,它使用wildfly 8.1盒带。 我想强制所有URL通过https而不是http

Https工作正常,但我也可以使用http访问相同的页面。这就是我想要禁用的

我发现了这篇知识库文章: 但这并没有描述wildfly Specific的配置

这是我在openshift上从wildfly获得的standalone.xml配置:

已修复

将以下内容添加到my web.xml中:

<security-constraint>
    <web-resource-collection>
        <web-resource-name>Viewpoint Secure URLs</web-resource-name>
        <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <user-data-constraint>
        <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
</security-constraint>
这将导致每个url重定向到https。但港口是8443。要使用默认端口443,我已经调整了config/standalone.xml:

在套接字绑定组更改中:

<socket-binding name="https" port="${jboss.https.port:8443}"/>

固定的

将以下内容添加到my web.xml中:

<security-constraint>
    <web-resource-collection>
        <web-resource-name>Viewpoint Secure URLs</web-resource-name>
        <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <user-data-constraint>
        <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
</security-constraint>
这将导致每个url重定向到https。但港口是8443。要使用默认端口443,我已经调整了config/standalone.xml:

在套接字绑定组更改中:

<socket-binding name="https" port="${jboss.https.port:8443}"/>


如果我没有web.xml,那么我可以在哪里为undertow更改它如果我没有web.xml,那么我可以在哪里为undertow更改它