【问题标题】:Configure http to https redirection in wildfly在 wildfly 中配置 http 到 https 重定向
【发布时间】:2018-03-14 17:39:51
【问题描述】:

我的 Wildfly 10.1.0 服务器上部署了 myapp.war,所有 http 请求都使用 8443 端口重定向到 https。

Wildfly 中是否有对特定 URL 进行例外处理的配置?

例如,我希望 http://localhost:8080/myapp/unprotected 不会重定向到 https://localhost:8443/myapp/unprotected

谢谢,

【问题讨论】:

    标签: ssl jboss wildfly-10 undertow


    【解决方案1】:

    您按照The Java EE 6 Tutorial, Volume I 中的说明指定安全约束。

    一个用于受保护的资源,一个用于未受保护的资源。对于后者,您可以省略 user-data-constraint

    【讨论】:

      猜你喜欢
      • 2019-09-20
      • 2018-11-07
      • 1970-01-01
      • 2019-07-12
      • 1970-01-01
      • 2012-02-06
      • 1970-01-01
      • 1970-01-01
      • 2016-01-04
      相关资源
      最近更新 更多