For the complete documentation index, see llms.txt. This page is also available as Markdown.

Redirect Handle From Origin

Configure request or response headers when the CDN receives selected 3xx responses from the origin server.

Redirect Handle From Origin allows you to select which origin redirect status codes trigger the rule and define headers to apply when a selected response is received. Headers can be configured separately for the request or response.

You can manage Redirect Handle From Origin in the Medianova Control Panel or via the Origin Settings API.

Origin Settings is available for CDN Resources that use My origin as the content source. The section is not displayed when Object storage is selected.

Configure Redirect Handle From Origin

Enable redirect handling, select the origin response codes that trigger the rule, and configure the headers to apply.

1

Open Origin Settings

Open your CDN Resource and select Origin Settings.

2

Enable Redirect Handle From Origin

Enable Redirect Handle From Origin.

The redirect status code and header configuration options become available.

3

Select Origin Response Codes

Under When the origin returns, select one or more status codes that should trigger the rule:

  • 301

  • 302

  • 303

  • 307

  • 308

Select Select all to include all available status codes.

4

Add a Header

Under Headers to apply, select Add header.

Choose where the header should be applied:

  • Request – Apply the header to the request.

  • Response – Apply the header to the response.

5

Configure the Header

Enter the header information:

  • Key – Enter the header name.

  • Value – Enter the header value.

Select Add to add the header to the configuration.

Repeat this step to configure additional headers as required.

6

Save the Configuration

Select Save in the pending changes bar.

Review the pending changes and confirm the update to apply the configuration to the CDN Resource.

Redirect Handling Behavior

Redirect Handle From Origin is triggered when the origin returns one of the selected 3xx status codes.

When triggered, the CDN applies the configured request or response headers according to the header type selected for each entry.

Only the status codes selected under When the origin returns trigger the configured rule.

Manage Headers

Configured headers can be managed under Headers to apply.

Each header is associated with either the Request or Response type and contains a key and value. After modifying the configuration, select Save in the pending changes bar and confirm the update.

Troubleshooting

If redirect handling does not produce the expected result:

  • Verify that Redirect Handle From Origin is enabled.

  • Verify that the origin returns one of the selected status codes.

  • Verify that the header is configured for the intended Request or Response type.

  • Verify that both the header Key and Value are configured correctly.

  • Save and confirm any pending configuration changes.

Last updated

Was this helpful?