清漆重写位置标题

时间:2014-06-18 07:10:07

标签: ssl varnish pound

我的配置是: 互联网 - > Nginx作为SSL-Offloader - >清漆 - > Nginx + PHP

当我从PHP发送重定向到https://foo.bar时,我看到http://foo.bar。 它看起来像Varnish重写位置标题作为回应。 我该如何解决?

没有Varnish的配置没问题: 互联网 - > Nginx作为SSL-Offloader - > Nginx + PHP

2 个答案:

答案 0 :(得分:1)

解决了:) 问题出在平衡器(Pound)配置中。 互联网 - > - > Nginx作为SSL-Offloader - >清漆 - > Nginx + PHP

我将 RewriteLocation 设置为0并解决了问题。

答案 1 :(得分:-1)

Varnish不支持ssl。官方解释原因:https://www.varnish-cache.org/docs/trunk/phk/ssl.html