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
-
In control panel from the top menu, press Products and select Cloud servers.
-
Go to the section Balancers → tab Balancers.
-
Open the 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>
— ID or name of the HTTP policy. The list can be viewed using the commandopenstack loadbalancer l7policy list
.