[Varnish] #766: Varnish Redirect Issue when User-Agent contains the string "connec"
Varnish
varnish-bugs at varnish-cache.org
Thu Sep 2 15:35:04 CEST 2010
#766: Varnish Redirect Issue when User-Agent contains the string "connec"
---------------------------------+------------------------------------------
Reporter: stefansinn | Type: defect
Status: new | Priority: high
Milestone: | Component: build
Version: 2.0 | Severity: major
Keywords: Redirect User-Agent |
---------------------------------+------------------------------------------
Comment(by stefansinn):
I see that there might be a slight misunderstanding. The domain which uses
Varnish for redirection of mobile user agents is not http://wetter.info
but rather http://www.wetter.info. So there is no relation to the HTTP/301
which is intentionally taking place from wetter.info to www.wetter.info.
:-)
Actually, the config we use at www.wetter.info looks like this:
-- tchik --
## 1st part in sub vcl_recv
if (req.http.user-agent ~ "^SIE-") {
if (req.http.host ~ "www.wetter.info") {
error 750 "mobil.wetter.info";
}
}
## 2nd part in sub vcl_error
if (obj.status == 750) {
set obj.http.Location = "http://mobil.wetter.info/";
set obj.status = 301;
set obj.http.cache-control = "no-cache, must-revalidate";
deliver;
}
-- tchak --
There is no place in this configuration anywhere that mentions the string
"connec" or anything similar which could trigger the redirect.
That's the reason we thought it might have been a bug. :-\
It would be great if we were wrong, and if we are, of course will we move
to the proper mailing list.
Thanks for your reply & regards..
--
Ticket URL: <http://varnish-cache.org/ticket/766#comment:4>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list