Skip to main content
Version: v7

KB: 1007


How to choose server groups based on HTTP request?

Haltdos WAF supports the upstream rule. The upstream rule can help the user to forward the request to desired backend server/server group.

kb-1007

Problem Statement

The client wants some requests to be served by one particular server group or DC and other requests to be served by another DC or a different server group.

Solution

To achieve the above scenario, we can use the upstream rules. Start by simply creating different server groups and servers inside them. No one has to go inside the upstream rule section and create the rule such that one chooses which server group will serve the request and also mentions the condition for the same.

Steps to Solve:-

  1. First of all we create a server group with desired backend IP. for example our backend.

kb-1007

  1. We need to make an upstream rule so that desired server will serve the request.

kb-1007

  1. Now as the website is bound with the false backend server. It'll not be served properly.

kb-1007

  1. Now if we set the upstream rule upstream to default real server.

kb-1007

  1. As a result, now we are able to reach the website as its served by a real backend server/server group

kb-1007

Here, we are not able to get the response from the actual server because the end-user request has been served by the correct server group.