Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Advanced Origins

Updated on 2025-01-21 GMT+08:00

You can configure advanced origins to allow CDN to pull content from different origin servers based on different URL paths.

Differences Between Advanced and Basic Origin Servers

Basic origin: origin server configured when you add a domain name to CDN. It is the default address of origin pulls for user requests.

Advanced origin: origin server from which CDN pulls content when a user request URL matches the resource type or path rule of this server.

Constraints

  • You can configure up to 20 rules.
  • You cannot configure advanced origins on the console for domain names with special configurations.
  • Domain names whose service type is whole site acceleration do not support this function.

Procedure

  1. Log in to Huawei Cloud console. Choose Service List > Content Delivery & Edge Computing > Content Delivery Network.

    The CDN console is displayed.

  2. In the navigation pane, choose Domains.
  3. In the domain list, click the target domain name or click Configure in the Operation column.
  4. Click the Origin Settings tab.
  5. In the Advanced Origin area, click Edit.
  6. Click Add to add an advanced origin rule
    Figure 1 Advanced origins
    Table 1 Parameter description

    Parameter

    Description

    URI Match Mode

    URIs can be matched by All files, File name extension, and Directory.

    URI Match Rule

    • All files: All requested resources are pulled from the configured advanced origin server. Exercise caution when selecting this option.
    • File name extension
      • All file types are supported.
      • Start with a period (.) and separate multiple extensions by semicolons (;).
      • Enter up to 20 file name extensions.
      • Enter up to 512 characters.
      • File name extensions are case-sensitive.

      Example: .JPG;.zip;.exe

    • Directory: Start with a slash (/) and separate multiple directories by semicolons (;). Spaces are not allowed. Enter up to 20 directories and up to 512 characters.

      Example: /test/folder01;/test/folder02

      NOTE:

      If you have signed URLs using method B or C1, URIs cannot be matched by Directory.

    Type

    Select IP address, Domain name, or OBS bucket.

    Address

    IP address
    • Enter an IPv4 address.
    Domain name
    • Start with a letter or digit. Enter up to 255 characters, including letters, digits, hyphens (-), and periods (.).
    • Each label of a domain name (for example, *** in ***.***.com) can contain up to 63 characters.
    • Third-party public object storage buckets can be accessed using their domain names.
    OBS bucket
    • Only OBS buckets of the current account can be accessed.
    • To access OBS private buckets, allow CDN to read OBS private buckets. For details, see OBS Authorization.
      NOTE:
      • You cannot add an OBS bucket if the domain name has special configuration.

    HTTP Port

    Port number for origin pull using HTTP.

    • The port number ranges from 1 to 65535. The default port is 80.
    • If Type is set to OBS bucket, this parameter cannot be modified.

    HTTPS Port

    Port number for origin pull using HTTPS.

    • The port number ranges from 1 to 65535. The default port is 443.
    • If Type is set to OBS bucket, this parameter cannot be modified.

    Origin Protocol

    Protocol used by CDN PoPs to pull content from the origin server.

    HTTP: CDN uses HTTP for origin pull.

    HTTPS: CDN uses HTTPS for origin pull. (Ensure that the origin server supports HTTPS access.)

    Same as user: The origin protocol is the same as the client access protocol. For example, if a client accesses CDN using HTTP, CDN also uses HTTP for origin pull.

    Host Header

    Host information of the advanced origin. For details, see Modifying the Host Header.

    • If Type is set to IP address or Domain name, the host is the acceleration domain name by default.
    • If Type is set to OBS bucket, the host is the OBS bucket domain name by default.

    Bucket

    This parameter is mandatory when Type is set to OBS bucket.

    • Public bucket: Select this option when the OBS bucket policy is public read or public read and write.
    • Private bucket: Select this option when the OBS bucket policy is private.

    Priority

    The priority value ranges from 1 to 100. The larger the value, the higher the priority.

    Operation

    Delete: Delete the rule.

  7. Configure parameters and click OK.

Example

Example: Assume that you have configured an advanced origin for domain name wwww.example01.com.

Configuration result: When a user requests an uncached JPG resource, CDN pulls the resource from the origin server wwww.example.com. CDN pulls other uncached resources from the basic origin server.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback