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