Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Ravi Kushwaha
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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