we have scenario to implement Traffic distribution with Confluence Data Center.
we are using haproxy is a load balance, want to Split REST API & Web traffic for Confluence DC .
I have 4 nodes and I want to route REST API queries to node number 3. I tried to implemet It , but it's not working.
Example:
If referrer == app.yourdomain.com and the request ~ /rest:
Direct traffic to Node 1 or Node 2 or Node 3 //normal traffic
If referrer != app.yourdomain.com and the request ~ /rest:
If the page requested == /login.jsp:
Direct traffic to Node 1 or Node 2 or Node 3 //normal traffic
Else:
Direct to Node 4 //external REST API traffic
for the above example i am unable to implement this in our haproxy.cfg file. what is referrer... and other things.
Please share any details, instructions, or examples for how you'd implement this.