Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

is it possible to check two conditions on one backend? example

backend web-static
        option httpchk GET /path/alive.php HTTP/1.1\r\nHost:\ www1.domain.com
        option httpchk GET /path2/alive.php HTTP/1.1\r\nHost:\ www1.domain.com
        server appsrv1 check inter 3000 weight 1
share|improve this question

1 Answer 1

up vote 1 down vote accepted

Probably, it'd be easier to make a "wrapper" PHP: it checks the other files, and if everything is ok, it returns with HTTP code 200, if not, 404.

As I remember, this worked for us too when we wanted functionality check too.

share|improve this answer
nice tip i will try it out! –  Elgreco08 Mar 31 '11 at 12:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.