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 192.168.1.10:80 check inter 3000 weight 1
share|improve this question
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.