# Http backend with vip call question

**URL:** <https://discourse.haproxy.org/t/http-backend-with-vip-call-question/1572>\
**Category:** Help!\
**Created:** [September 4, 2017, 1:10pm UTC](https://discourse.haproxy.org/t/http-backend-with-vip-call-question/1572 "2017-09-04T13:10:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gettaloviasubito](https://avatars.discourse-cdn.com/v4/letter/g/9d8465/32.png) [@gettaloviasubito](https://discourse.haproxy.org/u/gettaloviasubito)\
**Post date:** [September 4, 2017, 1:10pm UTC](https://discourse.haproxy.org/t/http-backend-with-vip-call-question/1572/1 "2017-09-04T13:10:51Z")

</div>

Hi there,

i have a stardard haproxy conf like this:

frontend TEST  
bind xxx.xxx.xxx.100:80 #VIP  
mode http  
default\_backend TEST-BACK  
option accept-invalid-http-request

backend TEST-BACK  
balance roundrobin  
server AS1 yyy.yyy.yyy.101:8080 check port 8080  
server AS2 zzz.zzz.zzz.102:8080 check port 8080

and works fine with client request.

But when inside (not from client) AS1 there is a request to the VIP sometime haproxy redirect the request to AS2 (it’s normal because roundrobin option) so my application failed

so my question is:

How i can set a rules who always redirect the AS1 —\> VIP request to AS1, and always the AS2 --\> VIP request to AS2?

Client ----\> VIP —\> AS1/AS2 works fine

Client ----\> VIP ----\> AS1 ----\> VIP ----\> (here i want to redirect only to the AS1 and not AS2)  
(and obv same for AS2)

ty!

---

<div class="post-metadata">

**Author:** ![lukastribus](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lukastribus](https://discourse.haproxy.org/u/lukastribus)\
**Post date:** [September 11, 2017, 9:23am UTC](https://discourse.haproxy.org/t/http-backend-with-vip-call-question/1572/2 "2017-09-11T09:23:36Z")

</div>

Consult the documentation about the balance keyword. There are plenty of options:

[https://cbonte.github.io/haproxy-dconv/1.7/configuration.html#4.2-balance](https://cbonte.github.io/haproxy-dconv/1.7/configuration.html#4.2-balance)
