joelvh / webpagetest

Automatically exported from code.google.com/p/webpagetest
0 stars 0 forks source link

overrideHost only works sometimes #146

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If I have a site with many images all on the same host and I try to toggle out 
that host with another, using overrideHost

For example, this script:

overrideHost    nebula.phx3.secureserver.net videosak2.video.me
navigate    http://theme21.roxyrestaurantencinatas.com/home.html

resulted in this single request getting pointed at videosak2.video.me:
http://www.webpagetest.org/result/130313_PR_ZXH/1/details/#request6

The rest of the nebula.phx3.secureserver.net requests went to their normal 
origin.

In most other tries of the above script, overrideHost didn't work for any of 
the nebula.phx3.secureserver.net requests.  I was shocked when I found this 
single request worked in this run.

Original issue reported on code.google.com by dkoop...@godaddy.com on 13 Mar 2013 at 11:25

GoogleCodeExporter commented 8 years ago
overrideHost just replaces the outbound Host header with the one you requested 
and puts in an x-Host header with the original.  If you look at the request 
headers you can see that happening.

If you want it to direct traffic to a different server then you need to use 
setDns or setDnsName to re-route the DNS lookups to point to the different host 
(possibly in combination with overrideHost if you also want to change the host 
name used).

Original comment by PatMee...@gmail.com on 14 Mar 2013 at 12:36

GoogleCodeExporter commented 8 years ago
Ahah!  Works.  Thank you so much, sorry for the false alarm.

Original comment by dkoop...@godaddy.com on 14 Mar 2013 at 1:45