Re: Config help - check a URL

From: Aleksandar Lazic <al-haproxy#none.at>
Date: Fri, 25 Apr 2008 20:40:41 +0200


Hi Christopher,

On Fre 25.04.2008 10:54, Christopher F. Falzone wrote:
> Hello,
>
> I have been using haProxy for a while and it is working great.
> However, when one of my 3 servers stops responding, I am still getting
> traffic to it.
> I would guess this is due to the way I have the check setup. What I
> really want it to do is check and see if a particular URL is up
> instead of just the IP. I know there must be a way to do this, but
> these things really confuse me.
>
> Below is my current config file. How would I change the check to look
> at a URL instead of just at the IP level?
>
> Would I use ...
> option httpchk /home/index.dot

I would use:

option httpchk HEAD /home/index.dot HTTP/1.1\r\nHost:\ www

more detail explanation under

http://haproxy.1wt.eu/download/1.3/doc/haproxy-en.txt

3.1) Server monitoring

Hth

Aleks Received on 2008/04/25 20:40

This archive was generated by hypermail 2.2.0 : 2008/04/25 20:45 CEST