Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
22.7 Legacy Series
»
HAProxy rules setup confusing me!
« previous
next »
Print
Pages: [
1
]
Author
Topic: HAProxy rules setup confusing me! (Read 693 times)
tre4bax
Full Member
Posts: 151
Karma: 4
HAProxy rules setup confusing me!
«
on:
December 29, 2022, 07:02:07 pm »
I am trying to correctly setup HAProxy for my application.
I have three urls that deliver to the haproxy address1.mydomain.com, address2.mydomain.com,address2.mydomain.com
Each has a real end server defined that points towards the correct internal server and the port number the target service is on.
There is a backend pool defined for each and a public service defined for each using a rule defined for each.
There are conditions for each of them in the form if host matches address1.mydomain.com
There is a rule for each which have the form if IS_Address1 use pool address1_pool.
As well as this there is a rule put in by the acme service and one to redirect any input from http to https using HTTP Redirect = scheme https code 301
My issue is that if I visit any of these sites address1, 2 or 3 I get sent to the same backend pool. During the time I have been trying to understand this I have been sent to each of the pools, so I know they all work. However all three addresses will always go to the same backend pool at any time.
This feels like a rules prescidence issue but I can find no way in the UI to reorganise them. The logs also do not seem to give any usable help. Anybody got any idea why I have this trouble? and if there is a better way to use the logs that might help me debug it?
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
22.7 Legacy Series
»
HAProxy rules setup confusing me!