ATS 出现“400 Multi-Hop Cycle Detected”的原因及解决方法(Apache Traffic Server 学习笔记 3)

使用curl命令通过ATS请求原始服务器资源时有时会返回"400 Multi-Hop Cycle Detected":


出现这个的原因可以参考


最后一句意思大概就是向原始服务器的请求又会被指向Traffic server。

解决方案可以参考:https://issues.apache.org/jira/browse/TS-2298

将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.

猜你喜欢

转载自blog.csdn.net/superbfly/article/details/79303538