# Configure backends for each domain separately in HAProxy

**Project:** Servers | **Board:** Under review | **Votes:** 4
**URL:** https://roadmap.ploi.io/projects/1-server-level-requests/items/707-configure-backends-for-each-domain-separately-in-haproxy

---

At the moment all servers which are added to haproxy are supposed to act as backend for **each** domain.

In some cases I do not have all domains on every backend-server.

Like:

- web1 - domain.org
- web2 - domain.org
- web3 - domain2.org
- web4 - domain2.org

Now at the moment I get 404 on 50% of all cases.

---

## Comments

**phil** (2023-07-06T14:08:51+00:00):
love this idea!

**phil** (2023-11-23T17:42:23+00:00):
Just thinking out loud, this would also help us reduce the amount of Public IPs that we have - I would love to get rid of most.

Being able to not necessarily use the load balancing part but use it in a way of just a reverse proxy would be very valuable.

**bkeeper** (2023-12-03T06:20:17+00:00):
Yes I love it too Haproxy could optionally be the default web reverse proxy.

Take a look at [https://roxy-wi.org/#about](https://roxy-wi.org/#about)

A nice Web interface for managing HAProxy.

Fully manage backend and frontend. 

You could group backends for failover 

Or just specify one backend and then haproxy would be just a proxy and manage certs for the backends.

This would turbocharge the Haproxy server type.




