HAProxy - forward to a different web server based on URI
Posted
by Saggi Malachi
on Server Fault
See other posts from Server Fault
or by Saggi Malachi
Published on 2010-03-29T22:44:21Z
Indexed on
2010/03/29
22:53 UTC
Read the original article
Hit count: 499
I have an HTTP farm with the following configuration:
listen webfarm 10.254.23.225:80
mode http
balance roundrobin
cookie SERVERID insert
option httpclose
option forwardfor
option httpchk HEAD /check.txt HTTP/1.0
server webA 10.254.23.4:80 cookie A check
server webB 10.248.23.128:80 cookie B check
I would like to add some option which would forward all requests for a specific URI (i.e /special) to a 3rd web server. How should I do it?
© Server Fault or respective owner