HAproxy problem [SOLVED]

Started by expart, March 15, 2018, 05:09:20 PM

Previous topic - Next topic
March 15, 2018, 05:09:20 PM Last Edit: March 16, 2018, 04:30:39 AM by expart
Hello!
I think I'm missing something very basic but already spend 4h on that and can't solve.

I've got OPNsense 18.1.3-amd64, running on virtual machine (Proxmox).  There are two more virtual machines (more to come) with different web services.
I'm setting "Real Servers" with proper IPs and ports in internal network, than "Backend Pools" and "Public Services".  DNS' configured with CNAMEs.
And have a problem: only that web service is working which was configured as last, for both domains.
I've been trying "Conditions" like "contains" or "finishes" with corresponding "Rules" but no luck.

Can anybody help me a little?

Thanks in advance and regards!

EDIT: it looks like that, no matter I do, last added "Public Service" is answering the request.

[SOLUTION] Making two public services was a mistake. I've made one public service redirecting to different web-servers based on Conditions and Rules.