With cloudlets like API Prioritization, Forward Rewrite, Phased Release, and EdgeWorkers, you can forward a request to a different origin. If you wish to use an alternate origin when forwarding requests, use the Conditional Origins rule templates.
Within the Conditional Origins rule template, there are two distinct rules:
- Conditional Origin Group rule. Used to enable Conditional Origins for the property. This rule contains child rules for defining each Conditional Origin within your configuration.
- Conditional Origin Definition rule. Contains the configuration details for a single Conditional Origin.
If you're adding Conditional Origins to your configuration, add them before you set up policies in Cloudlets Policy Manager and set up the supporting cloudlets behavior in Property Manager.
The Conditional Origin Group rule:
- lets you enable Conditional Origins for the property.
- must be the last child rule of the property’s Default Rule. You cannot have multiple Conditional Origin Group rules within a property.
- includes, by default, two Conditional Origin Definition child rules.
- is flexible. You can add more Conditional Origin Definition child rules if needed.
You cannot have multiple Conditional Origin Group rules within a property.
- Select the property you're adding Conditional Origins to.
- Select the version of the property configuration you want to edit.
- On the Edit tab of the property configuration, select Default Rule and click Add Rule.
- Select Conditional Origin Group from the list of available rule templates.
- Click Insert Rule.
A new Conditional Origin Group rule displays at the bottom of the list of child rules for the Default Rule.
- In the Criteria section for the rule, click Add Match to select the type of match that will trigger this Conditional Origin.
- In the Allow Conditional Origins behavior, complete these fields:
|Enable||Select to enable Conditional Origins for this property.|
|Honor Origin Base Path||Enable to prefix the Conditional Origin path to the path defined by an Origin Base Path behavior. If the request doesn't include an Origin Base Path behavior, this setting has no effect.|
If a Cloudlet already modifies the path by prepending the same Origin Base Path, it doesn't duplicate the path segment.
|Origin Purge Query Parameter||Enter the query parameter to use when purging cache content from a Conditional Origin. When this query parameter is present in a purge request, the specified Conditional Origin will be purged. The default query parameter is |
- Continue with setting up Conditional Origin Definition rule.
- The Conditional Origin Definition rule is used for defining the origins available for use with Cloudlets.
- Within a Conditional Origin Definition rule, you set up the specific configuration for an origin to be used with Cloudlets.
- Although the Conditional Origin Definition rule template includes an Origin Server behavior and a Content Provider behavior by default, only the Origin Server behavior is required.
- If you are setting up a NetStorage origin, a Caching behavior is also required.
- You can also add other behaviors to the Conditional Origin Definition rule. Any behavior added to this rule will only execute if a Cloudlet selects this Conditional Origin.
- When adding this rule to a property, it must be a child rule of the Conditional Origin Group rule.
When adding this rule to a property, it must be a child of the Conditional Origin Group rule.
- Verify that the Conditional Origin Group rule is already configured.
- From the Conditional Origin Group rule, click on the first Conditional Origin Definition rule.
- In the Criteria section for the rule, enter a Conditional Origin ID containing alphanumeric and underscore characters.
- Set up the Origin Server behavior.
Conditional Origins only support the Your Origin and NetStorage origin types. If using a NetStorage origin, you'll need to add the Caching behavior.
- Add any other behaviors that apply to this new Conditional Origin.
- Change the rule name to reflect the function of this Conditional Origin by clicking the action cog in the rule and selecting Edit Name.
- At the bottom of the rule section, click Save.
- Repeat the previous steps to set up additional Conditional Origins. You may need to add another Conditional Origin Definition child rule to the Conditional Origin Group rule.
- Complete any additional updates to the property and save your changes.
- Activate the property.
- Test your configuration.
Testing is especially important if another rule within the property contains a behavior that modifies the origin. This type of behavior may be applied to your Conditional Origin.
|Field||What it does|
|Enable||Enables or disables this behavior.|
|Honor Origin Base Path||If enabled, prefixes any Cloudlet-generated origin path with a path defined by the Origin Base Path behavior. If no path is defined, it has no effect. If another Cloudlet policy already prepends the same Origin Base Path, the path isn't duplicated.|
|Origin Purge Query Parameter||When purging content from a Cloudlets Origin, this specifies a query parameter name whose value is the specific named origin to purge. Note that this only applies to content purge requests, for example when using the Enhanced Content Control Utility API.|
Updated 12 months ago