參考資料:
https://book.varnish-software.com/3.0/Saving_a_request.html
Note Varnish does NOT send a Host header with health checks. If you need that, you can define the entire request using .request instead of .url.
解決方式:
改用 .request 來取代原先的 .url
backend one {
.host = "example.com";
.probe = {
.request =
"GET / HTTP/1.1"
"Host: www.foo.bar"
"Connection: close";
}
}
文章標籤
全站熱搜