【问题标题】:Varnish - https and external redirectsVarnish - https 和外部重定向
【发布时间】:2016-09-29 13:50:08
【问题描述】:

您好,我有一个带有 pound 和 varnish 的代理设置,该域在 SSL 上运行,因此所有请求都被重定向到 https:// 并启用了 https,即,如果我删除配置,我将重定向到 100% 工作的贝宝。但是使用 Https 将无法正常工作。

我无法弄清楚为什么会发生这种情况,来自网络服务器的响应有效并且设置了位置:https://externalsite.com,但是当它到达客户端时,它已更改为原始站点。

Client - Varnish https://example.com
Web Server - Varnish Location https://externalsite.com/path
Varnish - Client Location https://example.com/path

任何帮助将不胜感激,同时会继续寻找。,

【问题讨论】:

    标签: varnish


    【解决方案1】:

    我遇到了类似的问题,发现是磅导致重定向回原始域。

    将以下设置添加到 /etc/pound/pound.cfg 为我解决了这个问题。

     RewriteLocation 0
    

    【讨论】:

    • 谢谢,需要测试一下。
    猜你喜欢
    • 1970-01-01
    • 2015-03-11
    • 1970-01-01
    • 2019-02-02
    • 1970-01-01
    • 1970-01-01
    • 2012-05-26
    • 1970-01-01
    • 2017-07-15
    相关资源
    最近更新 更多