Change the order in which HTTP policies are applied in the rule
Application procedure HTTP Policy 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 a rule has multiple HTTP policies with the same action, they are applied according to the policy position in the rule balancer. You can change the policy position.
Control panel
OpenStack CLI
-
В control panels go to Cloud platform → Balancers.
-
Open the tab Balancers → balancer page.
-
Open the rule card.
-
In the block HTTP Policies drag and drop policies. The policy that is above the other policies with the same action is applied first.
-
Click Acknowledge.
-
Change the HTTP policy position in the rule:
openstack loadbalancer l7policy set --position <position> <policy>
Specify:
<position>
— policy position in the rule, e.g., a policy with a position of1
will be applied first among policies with the same effect;<policy>
— The ID or name of the HTTP policy. You can view the list withopenstack loadbalancer l7policy list