简体   繁体   English

使用负载均衡器进行SSL卸载

[英]SSL offloading with load balancer

I have configured an application where the load balancer will do an ssl offloading, all request from will come to https://application.com and it will internally redirect to apache port 80. I have saml configured with shibboleth in apache and it expects its destination URL as https. 我已经配置了一个应用程序,其中负载平衡器将执行ssl卸载,所有请求都将来自https://application.com ,它将在内部重定向到apache端口80。我在apache中配置了shibboleth的saml,并且期望目标网址为https。 As apache always get the request on port 80 it is creating problem. 由于apache总是在端口80上收到请求,因此造成了问题。 It is complaining the destination expected is https://application.com but got http://applcation.com is there a way in apache to give the server name as https in apache, I tried using canonical name but no luck. 它抱怨目的地应该是https://application.com,http://applcation.com却在apache中提供了一种在apache中将服务器名称指定为https的方法,我尝试使用规范名称,但没有运气。

I set as below in my configuration 我在配置中设置如下

ServerName https://application.com
UseCanonicalName On

Please let me know if there is any other way to set this. 如果还有其他设置方法,请告诉我。

Why dont you set up an ssl vhost for shibboleth and use it ? 为什么不为shibboleth设置ssl虚拟主机并使用它? You can go for selfsigned certificates for your ssl connection between webserver and LB. 您可以为Web服务器和LB之间的ssl连接获取自签名证书。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM