Someone redirects my root directory in varnich cache ?

Avatar
  • Answered
Recently some of my domains (index pages only) became redirected to amazon site. Purging single url '/' from varnisch cache removes redirection until next time. It happens on two physical vps's with the same code and varnish 4.1.2. After the first occurrence I checked if any files were modified within last 24 hours and but didn't find any. As well logs don't tell much, no varnish commands in syslog at given time, and not much in varnishncsa, where HEAD request is my script.

For now I was forced to pass all index pages to see it that helps for now, but I have no idea where to to start and what and where to look for ?

All domains have been online about 2 years with no issue. I've installed varnish about two weeks ago so is it possible that this varnish issue?

Thank you for any help
Derek


1.2.3.4 - - [11/Jun/2016:22:40:23 -0400] "HEAD http://www.domain.com/ HTTP/1.1" 200 0 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.
7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2"
100.43.81.151 - - [11/Jun/2016:22:40:39 -0400] "GET http://www.domain.com/ HTTP/1.1" 302 205 "-" "Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex
.com/bots)"
100.43.91.12 - - [11/Jun/2016:22:40:39 -0400] "GET http://www.domain.com/robots.txt HTTP/1.1" 302 205 "-" "Mozilla/5.0 (compatible; YandexBot/3.0; +
http://yandex.com/bots)"
100.43.81.151 - - [11/Jun/2016:22:40:39 -0400] "GET http://domain.com/robots.txt HTTP/1.1" 301 0 "-" "Mozilla/5.0 (compatible; YandexBot/3.0; +http:
//yandex.com/bots)"
100.43.81.151 - - [11/Jun/2016:22:40:39 -0400] "GET http://domain.com/robots.txt HTTP/1.1" 301 0 "-" "Mozilla/5.0 (compatible; YandexBot/3.0; +http://ya
ndex.com/bots)"
100.43.81.151 - - [11/Jun/2016:22:40:41 -0400] "GET http://www.domain.com/ HTTP/1.1" 200 4046 "-" "Mozilla/5.0 (compatible; YandexBot/3.0; +http://y
andex.com/bots)"
100.43.91.12 - - [11/Jun/2016:22:40:41 -0400] "GET http://domain.com/ HTTP/1.1" 301 0 "-" "Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.co
m/bots)"
100.43.81.151 - - [11/Jun/2016:22:40:41 -0400] "GET http://domain.com/ HTTP/1.1" 301 0 "-" "Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/b
ots)"
http://help.yahoo.com/help/us/ysearch/slurp)"
117.78.13.18 - - [11/Jun/2016:22:41:13 -0400] "GET http://www.domain.com/robots.txt HTTP/1.0" 200 405 "-" "nutch-1.4/Nutch-1.4"
1.2.3.4 - - [11/Jun/2016:22:41:23 -0400] "HEAD http://www.domain.com/ HTTP/1.1" 302 0 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.
7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2"
Avatar
Scott
Hello Dew,

Thank you for your question regarding Varnish redirection to Amazon. While it is possible that the Varnish caching continues to display behavior after a code change, you can flush it so that it re-caches the most current copy. For instance, if you have it set to keep the cache for a day, and make changes within that day, then the original behavior will display until you either flush it or the cache time expires.

As for why it redirected to Amazon, that would not have anything to do with Varnish. Some code somewhere told the pages to do that.

Kindest Regards,
Scott M