The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 802 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.1 (Linux)
File Line Function
/showthread.php 802 errorHandler->error



Current time: 12-12-2019, 03:41 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
setting own "Host: " header?
08-04-2012, 01:01 AM
Post: #1
setting own "Host: " header?
Consider this scenario: I have a server running "example.com" website, which performs rather poorly, which is further confirmed by WPT.

So I determine that the hardware is part of poor performance and order a new server. I copy the website over, make it run, don't change the DNS yet - because I'd like to verify the performance with the WPT.

Unfortunately, since the DNS points to the old site, I'm not able to use the WPT to check the performance of the new server.

Is there a way around this with the WPT?

I.e. with wget, I'd use the following syntax:

wget -O /dev/null --header="Host: example.com" http://1.1.1.1/some/url

wget -O /dev/null --header="Host: example.com" http://2.2.2.2/some/url

to fetch the same website (virtual host) from two different servers.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
setting own "Host: " header? - mangoo - 08-04-2012 01:01 AM
RE: setting own "Host: " header? - pmeenan - 08-04-2012, 01:09 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)