博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ATS 出现“400 Multi-Hop Cycle Detected”的原因及解决方法(Apache Traffic Server 学习笔记 3)
阅读量:4163 次
发布时间:2019-05-26

本文共 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.

你可能感兴趣的文章
实验4-1 逻辑量的编码和关系操作符
查看>>
实验5-2 for循环结构
查看>>
实验5-3 break语句和continue语句
查看>>
实验5-4 循环的嵌套
查看>>
实验5-5 循环的合并
查看>>
实验5-6 do-while循环结构
查看>>
实验5-7 程序调试入门
查看>>
实验5-8 综合练习
查看>>
第2章实验补充C语言中如何计算补码
查看>>
深入入门正则表达式(java) - 命名捕获
查看>>
使用bash解析xml
查看>>
android系统提供的常用命令行工具
查看>>
【Python基础1】变量和字符串定义
查看>>
【Python基础2】python字符串方法及格式设置
查看>>
【Python】random生成随机数
查看>>
【Python基础3】数字类型与常用运算
查看>>
【Python基础4】for循环、while循环与if分支
查看>>
【Python基础6】格式化字符串
查看>>
【Python基础7】字典
查看>>
【Python基础8】函数参数
查看>>