【发布时间】: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
【问题讨论】: