You can use custom rules to address specific requirements or use cases.
Create a custom rule
In the ESA console, choose Websites. In the Website column, click the target site.
In the navigation pane on the left, choose . Click Edit for the target load balancer.

On the Configure Custom Rule tab, click Create Custom Rule.

Enter a Rule Name. In the If requests match... section, select a field and its properties.
NoteThe expression builder includes many common request features. You can select request matching rules and generate expressions as needed.
An accelerated domain name can route requests to different origins based on the URI path.
From the match type drop-down list, select a match field.
From the operator drop-down list, select a match operator.

In the Then execute... section, select Respond with Specified Content or Override.

Project
Item
Description
Respond with specified content
Response status code
Optional. The default value is 200.
Content-Type
Optional. The default value is application/octet-stream.
Location
Optional. By default, this HTTP header is not included in the response. The maximum size is 1024 bytes.
Body
Optional. The default value is empty, which means the HTTP body is empty. The maximum size is 1024 bytes.
Override load balancer configuration
Origin pool
Specify the origin pool.
Fallback origin pool
Specify the fallback origin pool.
Load balancing policy
Specify the traffic steering policy.
Session persistence
Enable or disable session persistence.
Primary region pool
A global region-level origin pool.
Secondary region pool
A region-level origin pool within the corresponding primary region.
Load balancer TTL
Controls the time that a data packet can exist in the network.
Stop
Stops matching and executing custom rules for the load balancer.
NoteRules are executed according to their ordinal number, from lowest to highest. If a rule with the Stop action is matched, no further custom rules are processed.
Click OK.