问题描述
我正在尝试通过 varnish(client
我的流程如下所示:
Client--> Caching_Server[NGINX(仅用于 SSL 支持)-> Varnish] --> Origin_Server[Nginx]
我的清漆服务器配置很简单:
probe healthcheck {
.url = "http://10.10.10.3/healthcheck";
.timeout = 2s;
.interval = 30s;
.window = 5;
.threshold = 3;
}
backend default {
.host = "10.10.10.3";
.port = "80";
.probe = healthcheck;
}
sub vcl_recv {
if (req.url ~ ".ts$") {
unset req.http.Cookie;
}
set req.backend_hint = default;
}
我还检查了 Nginx 日志,我看到它抛出 404,这解释了为什么 varnish 响应 404。但我的问题是为什么当我使用 localhost 在本地测试它时它可以工作。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)