Skip to main content
Change the order in which HTTP policies are applied in the rule

Change the order in which HTTP policies are applied in the rule

The order in which HTTP policies are applied depends on the policy action. Traffic rejection policies (REJECT) are applied first, followed by URL referral policies (REDIRECT_TO_URL) and URL prefix (REDIRECT_PREFIX), then target group referral policies (REDIRECT_TO_POOL).

If there are multiple HTTP policies with the same action in a rule, they are applied according to the policy position in the balancer rule. You can change the policy position.

  1. In the Control panel, on the top menu, click Products and select Cloud Servers.

  2. Go to BalancersBalancers tab.

  3. Open the balancer page.

  4. Open the rule card.

  5. In the HTTP Policies block, drag and drop the policies. The policy that is above the other policies with the same action is applied first.

  6. Click Confirm.