[
https://issues.apache.org/jira/browse/TS-4396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15265079#comment-15265079
]
Felix Buenemann commented on TS-4396:
-------------------------------------
There is a related bug that causes an endless redirect loop in ATS when using
the following settings:
proxy.config.http.redirection_enabled = 1
proxy.config.http.number_of_redirections = 1
# This causes the loop:
proxy.config.http.redirect_use_orig_cache_key = 1
The work around as above is to set:
proxy.config.http.number_of_redirections = 2
During the loop the squid.blog shows endless lines of TCP_MISS_REDIRECT/307 0
GET <url-from-location-of-the-redirect>.
I am running ATS/6.1.1 in reverse proxy mode with a single map entry for the
origin that returns the redirects and pristine host headers enabled. The URL
being redirected to does not match anything in the remap.config.
> Off-by-one error in max redirects with redirection enabled
> ----------------------------------------------------------
>
> Key: TS-4396
> URL: https://issues.apache.org/jira/browse/TS-4396
> Project: Traffic Server
> Issue Type: Bug
> Reporter: Felix Buenemann
>
> There is a problem in the current stable version 6.1.1 where the setting
> proxy.config.http.number_of_redirections = 1 is incorrectly checked when
> following origin redirects by setting proxy.config.http.redirection_enabled =
> 1.
> If the requested URL is not already cached, ATS returns the redirect response
> to the client instead of storing the target into the cache and returning it
> to the client.
> The problem can be fixed by using proxy.config.http.number_of_redirections =
> 2, but we are only following one redirect, so this is wrong.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)