# HAproxy load balancing without reverse proxy

**URL:** <https://discourse.haproxy.org/t/haproxy-load-balancing-without-reverse-proxy/5488>\
**Category:** Help!\
**Created:** [July 16, 2020, 1:48pm UTC](https://discourse.haproxy.org/t/haproxy-load-balancing-without-reverse-proxy/5488 "2020-07-16T13:48:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![arsadkamis](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@arsadkamis](https://discourse.haproxy.org/u/arsadkamis)\
**Post date:** [July 16, 2020, 1:48pm UTC](https://discourse.haproxy.org/t/haproxy-load-balancing-without-reverse-proxy/5488/1 "2020-07-16T13:48:10Z")

</div>

Hi I’m new in HAproxy,

I want to load balance my server 192.168.1.2/myweb & 192.168.1.3/myweb

my HAproxy IP is 192.168.1.1

this my configuration

backend myweb  
option forwardfor  
balance roundrobin  
mode http  
server ubuntu1 192.168.1.2:8890  
server ubuntu2 192.168.1.3:8890

If possible i want HAproxy to forward my traffic to the real server, rather than browsing from HAproxy server.

for example like using: http-request redirect location [http://192.168.1.2/myweb](http://192.168.1.2/myweb) or http-request redirect prefix http:///myweb  
any suggestion?

---

<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:** [July 16, 2020, 2:01pm UTC](https://discourse.haproxy.org/t/haproxy-load-balancing-without-reverse-proxy/5488/2 "2020-07-16T14:01:59Z")

</div>

And when one of those servers fails half of your customers can no longer use your service? Because that is what you are asking.

No, this is not supported. Haproxy is a load-balancer, not a random redirect generator.

---

<div class="post-metadata">

**Author:** ![arsadkamis](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@arsadkamis](https://discourse.haproxy.org/u/arsadkamis)\
**Post date:** [July 16, 2020, 2:06pm UTC](https://discourse.haproxy.org/t/haproxy-load-balancing-without-reverse-proxy/5488/3 "2020-07-16T14:06:00Z")

</div>

if one of those server fail. HAproxy should redirect to web server no 2 right?

---

<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:** [July 16, 2020, 2:10pm UTC](https://discourse.haproxy.org/t/haproxy-load-balancing-without-reverse-proxy/5488/4 "2020-07-16T14:10:58Z")

</div>

How should haproxy do that, if it isn’t involved anymore in the traffic flow between client and server?

No, this doesn’t make any sense and haproxy does not support doing that.
