Forwarding Rule
Introduction
You can configure forwarding policies to forward requests to different backend server groups based on a wide range of forwarding rules and actions.
Forwarding Rule Types
Advanced forwarding policies support the following types of forwarding rules: domain name, path, HTTP request method, HTTP header, query string, cookie, and CIDR block.
Forwarding Rule |
Description |
---|---|
Domain name |
Example Request URL: https://www.example.com/login.php?locale=en-us=#videos Domain name in the forwarding rule: www.example.com |
Path |
For more information, see Path Matching Based on Regular Expressions. Example path: Request URL: https://www.example.com/login.php?locale=en-us#videos Path in the forwarding rule: /login.php |
Query string |
Route requests based on the query string.
A query string consists of a key and one or more values. You need to set the key and values separately.
Example Request URL: https://www.example.com/login.php?locale=en-us#videos A query string needs to be configured for the forwarding rule: Key: locale Value: en-us |
HTTP request method |
Route requests based on the HTTP method.
Example GET |
HTTP header |
Route requests based on the HTTP header.
An HTTP header consists of a key and one or more values. You need to configure the key and values separately.
Example Key: Accept-Language Value: en-us |
CIDR block |
Route requests based on source IP addresses from where the requests originate. Example 192.168.1.0/24 or 2020:50::44/127 |
Cookie |
Route requests based on the cookie. A cookie consists of a key and a value. You need to configure the key and value separately.
Example: Key: cookie_name Value: cookie_value |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot