Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We're using stunnel and HAProxy for our load balancing needs.

In nginx you can enable a maintenance state, based on the existance of a file on a child server (see Configure nginx to serve a 503 if a file exists).

Is it possible to put a server node into 'maintenance mode' based on the existance of a file, when using HAProxy?

share|improve this question
up vote 2 down vote accepted

Yes you can.

If the health check file is missing. Check the disable-on-404 option.

share|improve this answer

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.