I am looking for divert rest api traffic to the specific node in data center cluster

Ravi Kushwaha December 15, 2022

Hello, 

I am using apache as a load balancer and wanted to divert traffic to specific node. Want to achieve the below scenario please suggest here for apache 2.0 configuration context. How can we check below conditions in apache?

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

1 answer

0 votes
Rajat Singh July 21, 2023

Did you get the solution for this?

Suggest an answer

Log in or Sign up to answer