Cloudflare Docs
Rules
Rules
Visit Rules on GitHub
Set theme to dark (⇧+D)

Origin Rules (beta)

Origin Rules allow you to customize where the incoming traffic will go and with which parameters. Currently you can perform the following overrides:

The Origin Rule expression will determine when these overrides are applied.

​​ Availability

FreeProBusinessEnterprise
Number of Origin Rules102050100
Host Header OverrideYes
Resolve OverrideYes
Destination Port OverrideYesYesYesYes

​​ Important remarks

If you override the hostname with an Origin Rule (via Host Header Override or Resolve Override) and add a header override to your Load Balancer configuration, the Origin Rule will take precedence over the Load Balancer configuration.