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.

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 xxx.xxx.xxx.xx:8080 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.

Thanks

share|improve this question

1 Answer 1

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

 
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.