Create the Content Rules
- Last Updated: October 10, 2024
- 1 minute read
- LoadMaster
- LoadMaster GA
- Documentation
When a user logs in, the index number of the first matching steering group is used to create a cookie. The index number of the steering groups correspond to the order of the groups in the Steering Groups field in the Virtual Service, (that is, the first group has an index of 1, the second has an index of 2 and so on.)
The cookie is called X-Kemp-STEERING. Content rules should be created and added to the relevant Real Server(s) in order to match the relevant steering group and steer the traffic appropriately. To create a content rule for this purpose, follow the steps below:
- In the main menu of the LoadMaster WUI, go to Rules & Checking > Content Rules.
- Click Create New.
- Enter a recognizable Rule Name.
- Ensure the Rule Type is set to Content Matching.
- Ensure the Match Type is set to Regular Expression.
- Enter Cookie as the Header Field.
- Enter X-Kemp-STEERING=<IndexOfSteeringGroup>, for example X-Kemp-STEERING=1 to match the first group in the Steering Groups list.
- Click Create Rule.
- Repeat these steps for any other steering groups, as needed.