Advanced Origin Settings

Define advanced origin routing rules by matching requests to specific origins based on URI patterns, protocols, domains, ports, and priority.

Advanced Origin Settings allow you to configure granular origin-routing behavior for specific URIs, file types, or directories. By defining rule-based conditions, you can route selected traffic to different origins, override ports, set custom host headers, or assign priorities for complex routing environments.

You can manage Advanced Origin Settings in the Medianova Control Panelarrow-up-right or via APIarrow-up-right.

Log in to the Medianova Control Panel, select a CDN resource in the CDN section, and navigate to the Origin Settings tab.

Advanced Origin Settings use rule-based logic. Each rule defines what request pattern to match and how the CDN should route that traffic.

Add an Origin Rule

This workflow creates a new rule for routing selected requests to a specific origin configuration.

1

Open the Add Rule Dialog

Select Add in the Advanced Origin Settings section to create a new routing rule.

2

Select the URI Match Mode

Choose whether the rule should match an Exact Path, Prefix, File Extension, or Regex pattern.

3

Define the URI Match Rule

Enter the URI, directory, extension, or expression that determines which requests will use this origin rule.

4

Select the Protocol

Choose whether the CDN forwards requests using HTTP, HTTPS, or Same as Request.

5

Enter the Domain or IP

Specify the origin host that the CDN should forward matched traffic to.

6

Configure HTTP and HTTPS Ports

Enter the port numbers the CDN should use when communicating with the origin.

7

Set the Host Header

Define a custom Host header if the origin requires a different hostname than the request URL.

8

Assign Priority

Choose a priority value to control which rule applies if multiple rules match the same request.

9

Save the Rule

Select Add to save the rule to the rule list.

10

Submit the Configuration

Click Submit to apply all rule changes to the CDN resource.

Edit an Origin Rule

1

Select the Rule To Edit

Choose an existing rule from the list in the Advanced Origin Settings section.

2

Modify the Required Fields

Update match conditions, origin host, ports, or priority values.

3

Save the Updated Rule

Click Submit to apply the updated configuration.

Delete an Origin Rule

1

Remove the Rule

Select the delete icon next to the rule you want to remove.

2

Confirm Deletion

Submit the change to finalize the removal.

Behaviour

Advanced Origin Settings follow a priority-based evaluation model:

  • Highest priority wins. Lower numeric values represent higher priority.

  • If multiple rules match the incoming request, the CDN applies the rule with the highest priority.

  • If no rules match, the CDN uses the default origin configuration.

Routing decisions consider:

  • URI match pattern

  • Origin protocol selection

  • Domain/IP

  • Ports

  • Host header

This allows precise routing for APIs, media directories, file extensions, or multi-origin deployments.

FAQ

What happens if multiple rules match the same request?

The rule with the highest priority (lowest priority number) is applied.

Do regex or prefix rules impact performance?

Regex rules are more expensive than prefix or extension matches. Use them only when necessary.

What if no Advanced Origin rule matches the request?

The request is sent to the default origin defined in the main Origin Settings section.


Streaming Content Caching

For Streaming Content Caching resources, Advanced Origin Settings use a different structure based on Origin Groups and URI Match Rules.

Instead of defining individual origin rules directly, you first create origin groups containing one or more origins, then create URI match rules that route traffic to those groups.

Advanced Origin Settings for Streaming Content Caching – Origin Groups and URI Match Rules sections

The page has two sections:

  • Origin Groups – Define groups of origins for load balancing and failover.

  • URI Match Rules – Assign URI patterns to origin groups to route traffic.

circle-info

You must create at least one origin group before you can add URI match rules.

Create an Origin Group

You can create up to 50 origin groups, and each group can contain up to 25 origins.

1

Open the Add Origin Group Dialog

Click Add group in the Origin Groups section.

Add Origin Group Settings dialog
2

Configure the Origin Group

Fill in the following fields:

  • Group Name – Enter a descriptive name for the group.

  • Protocol – Choose HTTP, HTTPS, or Same as Request.

  • Domain or IP – Specify the origin server address.

  • HTTP Port / HTTPS Port – Enter the port numbers for origin communication.

  • Host Header(Optional) Define a custom Host header if the origin requires it.

  • Weight – Set a weight value for traffic distribution within the group.

  • Priority – Choose Primary or Backup to define failover behavior.

Click Add to add the origin to the group.

3

Submit Origin Groups

After adding all origins, click Submit groups to save the configuration.

Origin group with added origins – click Submit groups to save

You can add more origins to the same group or create additional groups by clicking Add group again.

Add a URI Match Rule

After creating origin groups, define URI match rules to route traffic to the appropriate group.

1

Open the Add Rule Dialog

Click Add rule in the URI Match Rules section.

Add Rule dialog – select match mode, enter rule, and assign an origin group
2

Configure the Rule

Fill in the following fields:

  • URI Match Mode – Choose File Extension, Exact Path, Prefix, or Regex.

  • URI Match Rule – Enter the pattern to match (for example, .m3h8 for HLS manifest files).

  • Origin Group – Select the origin group that should handle matched requests.

Click Add to create the rule.

3

Submit URI Match Rules

You can reorder rules by dragging the handle icon () on the left side of each rule — the rule at the top has the highest priority.

Click Submit rules to apply the URI match rules to the CDN resource.

URI match rules list – drag the ≡ handle to reorder priority, then click Submit rules to apply

Last updated

Was this helpful?