Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4714

Rerouting in HAPROXY

$
0
0

@chmod1986 wrote:

Due to business needs we need to reroute the incoming requests from “rpi.flipcart.net” to “txg.fipcart.net”. I have configured the haproxy as

"frontend http
bind *:80
bind *:443 ssl crt /etc/haproxy/certs/wildcard.pem
option http-server-close
option http-keep-alive
mode http
acl rpi hdr(host) -i rpi.flipcart.net
use_backend rpihttp1 if rpi

backend rpihttp1
balance roundrobin
server prod-webrpi1 10.XXX.XXX.XX:80 check inter 30s
server prod-webrpi2 10.XXX.XXX.XX:80 check inter 30s"

Application on web servers installed to server “txg.fipcart.net”. Not sure at how and what level (fronend/backend) reroute need to be implemented.

Posts: 7

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4714

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>