本文共 490 字,大约阅读时间需要 1 分钟。
使用curl命令通过ATS请求原始服务器资源时有时会返回"400 Multi-Hop Cycle Detected":
出现这个的原因可以参考
最后一句意思大概就是向原始服务器的请求又会被指向Traffic server。
解决方案可以参考:
将records.config中的insert_request_via_str的值改成0;
引用其中的一段解释:
If www.example.com and api.example.com is going trough the same trafficserver with proxy.config.http.insert_request_via_str enabled we get the Multi-Hop Cycle detected error. If they are going trough different physical hosts, or if we disable proxy.config.http.insert_request_via_str then the problem goes away.