Ok, I actually found something under thread "haproxy-1.4.3 and
keep-alive status".
By default, "tunneling" is used. The solution would be "option
http-server-close" but Jetty doesn't play nicely. Well thanks anyway :)
- Kari
Kari Lavikka kirjoitti:
Hi
I'm evaluating HAProxy and it looks very promising. However, I noticed
odd behavior and didn't find any documentation regarding it.
I have the following configuration:
frontend irc-galleria
bind .......
mode http
use_backend chatserver if { path_beg /chatserver }
use_backend suggestsearch if { path_beg /suggestSearch }
default_backend lighttpd-suomi
Both chatserver and suggestSearch are Jettys. Now the problem is: If I
browse a chatserver or suggestSearch url and continue to another page
that should be fetched from lighttpd-suomi, I'll get 404 errors from
Jetty. For some reason haproxy evaluates ACLs only on the initial
request in a keep-alive session. I found two "solutions" to this
problem - either disable keep-alive in browser or add "option
httpclose" to chatserver and suggestSearch backends.
Do I have a misconfiguration or is this a feature/bug? Thanks!
--
Kari Lavikka