Origin Rules
Origin Rules allow you to customize where the incoming traffic will go and with which parameters. Currently you can perform the following overrides:
- Host header: Overrides the
Host
header of incoming requests. - Server Name Indication (SNI): Overrides the Server Name Indication (SNI) value of incoming requests.
- DNS record: Overrides the resolved hostname of incoming requests.
- Destination port: Overrides the resolved destination port of incoming requests.
The origin rule expression will determine when these overrides will be applied.
Availability
Free | Pro | Business | Enterprise | |
Availability |
Yes | Yes | Yes | Yes |
Number of rules |
10 | 25 | 50 | 125 |
Override destination port |
Yes | Yes | Yes | Yes |
Override DNS records |
No | No | No | Yes |
Override Host header |
No | No | No | Yes |
Override SNI |
No | No | No | Yes |
Execution order
The execution order of Rules products is the following:
The different types of rules listed above will take precedence over Page Rules. This means that Page Rules will be overridden if there is a match for both Page Rules and the Rules products listed above.
Important remarks
If you override the hostname with an origin rule (via Host
header override or DNS record override) and add a header override to your load balancer configuration, the origin rule will take precedence over the load balancer configuration.
Like Page Rules, an origin rule performing a Host
header override will update the SNI value of the original request to the same value of the Host
header. To set an SNI value different from the Host
header override, add an SNI override in the same origin rule or create a separate origin rule for this purpose.