Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I'm trying to setup haproxy so that http requests are routed to servlets hosted by websphere.

The servlets have a root context set so that:

wget  [host]:[port]/[root context] 

returns a response were as

wget  [host]:[port]

returns 404

How can I configure haproxy so that a proxy defined something like this:

listen MyProxy aaa.bbb.ccc.ddd:80 
mode http 
server SERVER1 cookie SERVER_01 check 

doesn't result in haproxy reporting the server is down with a 404? I can't see where I can specify a root context.


share|improve this question
up vote 1 down vote accepted

You just have to specify the URL to check using "option httpchk". For instance :

 option httpchk /index.html
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.