Right way have handling HOST HEADER Servers

Subhendu Ghosh sghosh at sghosh.org
Fri Oct 25 18:28:04 CEST 2002


For host headers it is best to specify both -H and -I

-H creates the host header
-I (ip addr) send the request to the webserver

-sg

On Fri, 25 Oct 2002, Jeff Rendl wrote:

> In services.cfg, for this particular web server, I have the following:
>  
> host_name                bigwebserver
> ...blah, blah, blah
> check_command        check_http -H virtualhost.thisplace.com -u /thisdir
> }
>  
> It worded before I added the host header stuff, but the web server doesn't
> give anything back when you go to it by its host name, only when you go by
> one of the *many* hosted sites on the server.
>  
> Am I fundamentally missing something here?  What's the right way to setup a
> web server in Nagios that has many different sites running on it?  Do I
> setup individual hosts for it for each site?  I really don't want this thing
> showing up as a bunch of hosts, but if I must, I must.
>  
> Thanks!
> -Jeff
> 

-- 




-------------------------------------------------------
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en




More information about the Users mailing list