使用 aws elb 和 apache 重定向 301 的无限循环



我们在 AWS ELB 前面有清漆和 apache,对于每个 https 重定向,我们都会在 apache 日志中看到"无限循环"错误 -

[Sun Nov 10 03:06:36 2013] [error] [client 127.0.0.1] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: https://www.*******.com/login?service=https%3A%2F%2Fwww.anaplan.com%

要修复,我们必须在清漆配置中添加它 -

sub vcl_hash {
hash_data(req.url);
hash_data(req.http.X-Forwarded-Proto);
return(hash);
}

干杯

雷纳·

最新更新