【问题标题】:CAS 5.2.0 How to configure cas in a way so that it listen to HTTP?CAS 5.2.0 如何配置 cas 以使其监听 HTTP?
【发布时间】:2018-05-28 02:49:48
【问题描述】:

在用户和 CAS 之间有一个负载平衡器。负载均衡器将检查是否允许 SSL 证书。但是从负载均衡器到 CAS 的连接将是 HTTP。

如何配置 cas 以使其侦听 HTTP?

我已经在我的 cas.properties 中尝试过,但没有解决我的问题:

cas.server.httpProxy.enabled=true
cas.server.httpProxy.secure=false ## changed from True
cas.server.httpProxy.protocol=AJP/1.3
cas.server.httpProxy.scheme=http ## changed to http
cas.server.httpProxy.redirectPort=8080
cas.server.httpProxy.proxyPort=8080
cas.server.httpProxy.attributes.attributeName=attributeValue

我确实有警告: “非安全连接您当前正在通过非安全连接访问 CAS。单点登录将不起作用。为了使单点登录工作,您必须通过 HTTPS 登录。”但警告仍然存在。 https://apereo.github.io/cas/5.2.x/installation/Configuration-Properties.html#http-proxying

【问题讨论】:

    标签: spring tomcat ssl cas


    【解决方案1】:

    尝试添加

    cas.server.http.port=8080
    cas.server.http.protocol=org.apache.coyote.http11.Http11NioProtocol
    cas.server.http.enabled=true
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-08-22
      • 1970-01-01
      • 2014-11-27
      • 1970-01-01
      相关资源
      最近更新 更多