You can set back-to-origin rules to define whether to retrieve origin data by mirroring or redirection. Back-to-origin rules are usually used for hot migration of data and redirection of specific requests. You can configure up to five back-to-origin rules, which is executed by the system in sequence.
Note: Back-to-origin does not support intranet endpoint. For more information on traffic fees, see Pricing.
Log on to the OSS console.
Click to open the target bucket.
Click the Basic Settings tab.
In the Back-to-Origin area, click Edit.
Click Create Rule.
In the Back-to-Origin Type area, select Mirroring or Redirect.
When Mirroring is configured, if a requested file is not found on OSS, it is automatically retrieved from the source site, saved to the OSS, and the content is returned to the user.
When Redirect is configured, the requests that meet the response condition are returned to the redirected URL through HTTP redirection. A browser or client then obtains the content from the source site.
Click OK to save the rule.
Note: After the rule is successfully saved, you can view the configured rule in the rule list and perform corresponding Edit or Clear operations.