- 论坛徽章:
- 0
|
本帖最后由 LnBSD 于 2011-12-30 10:01 编辑
关于Your request is prohibited because it would cause a cycle. 的问题,我大致看了一下代码
proxy/http/HttpTransact.cc- 6736 if (via_string && ptr_len_str(via_string, via_len, this_machine()->ip_hex_string)) {
- 6737 Debug("http_transact", "[will_this_request_self_loop] Incoming via: %.*s has (%s[%s] (%s))", via_len, via_string,
- 6738 s->http_config_param->proxy_hostname, this_machine()->ip_hex_string, s->http_config_param->proxy_request_via_string);
- 6739 build_error_response(s, HTTP_STATUS_BAD_REQUEST, "Multi-Hop Cycle Detected",
- 6740 "request#cycle_detected", "Your request is prohibited because it would cause a cycle.");
- 6741 return TRUE;
- 6742 }
复制代码 用这个伪静态做例子
RewriteRule ^/ie9/$ http://soft.tttt.com.cn/topic/2204683.html [NC,P]
是不是如果请求HOST的ip检查和要代理到的soft.tttt.com.cn 这个是一个话,就报上面的Your request is prohibited because it would cause a cycle 400错误,这样的设计是不是有问题呢
如果我一台机器上的两个虚拟主机做这样的伪静态指向就会出现类似的400错误 |
|