[olug] get web server host name

Dave Weis djweis at internetsolver.com
Fri Apr 11 10:44:44 UTC 2008


Mr Scsi wrote:
> No, not resolve dns.
> 
> My bad for not being clearer.
> 
> What I have is a group of servers some at site 'A', some at site 'B' some at
> site 'C' with a weighted load balancer system, (IBM Edge, these are
> websphere boxes)
> 
> The team that owns the applications running on them want a light diag script
> to get (most likely via lwp) wwwXX.domain.com XXX number of times, and count
> how many times each server responds.
> If the clusting is working correctly, multiple hits should bounce about the
> groups of servers. They want to count how many times site 'A' server 1
> responds and site 'A' server 2 responds, etc....
> 
> So, I need to get the hostname out of the response headers if possible.

We do something similar for load balancers and just use an apache 
directive to put the server's hostname into the headers.



More information about the OLUG mailing list