HTTP test of many virtual hosts

Need new test, action, option? Post request here.
Post Reply
tongyan
Posts: 6
Joined: Mon Apr 04, 2005 11:31 pm

HTTP test of many virtual hosts

Post by tongyan »

hi Alex,
we have lot of servers running for one domain, DNS robin like this:
www.a.com 192.168.11.1
www.a.com 192.168.11.2
www.a.com 192.168.11.3

and all the servers are virtual host, so I can't use 192.168.11.1 to visit the website. how can I know all the www.a.com is ok?
timn
Posts: 184
Joined: Thu Nov 20, 2003 9:57 am
Location: United States

Post by timn »

Tongyan:

We have this issue in several places. One very effective way to
solve this is to have a Host Monitor RMA running on the same
physical network as the virtual hosts - that way RMA can use
the real addresses of the host...

192.168.11.1
192.168.11.2
192.168.11.3
...

Then just a single modification to firewall will allow Host Monitor
to speak to RMA Agent. We have a web farm of 60 servers and
another one of 10 servers for which this solution works quite well.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

May be Tongyan doesn't have any problems with firewall but his web server returns error when receives URL request with IP address (e.g. http://192.168.11.3/index.htm)?
Do I understand the problem correctly?

Regards
Alex
ctino
Posts: 6
Joined: Thu Feb 17, 2005 12:24 pm

Post by ctino »

At our site we have a similar problem. I want to be able to check many virtual hosts on a single ipaddress.

An http 1.1 example conversation looks like this:

telnet [ipnumber] [portnumber]
GET /somefile.html HTTP/1.1 [enter]
Host: myfirstvirtualhost.mysite.com [enter] [enter]

followed by output...preferably '200 OK' ...

Hostmonitor gives you the possibility to send an extra header field. Specifiying a host there doesn't seem to solve our problem :-?

Definitely one for the wishlist...
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Probably it doesn't work because HostMonitor always sends standard headers (including 'host:') plus your custom headers.
H'm.. we can make some changes in the code - replace standard headers with your custom parameters (if any)

Regards
Alex
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Update available at www.ks-soft.net/download/hm531e.zip

Regards
Alex
ctino
Posts: 6
Joined: Thu Feb 17, 2005 12:24 pm

Post by ctino »

Wow! Really neat that patch!
It's working great ;c)

Now I can setup individual checks on _all_ virtual hosts.

Thnx a lot Alex
Post Reply