Accelerate content delivery with Alibaba Cloud Content Delivery Network (CDN). This guide covers the core concepts and essential configuration steps, from adding your domain to verifying the acceleration.
This document uses www.example.com as the example domain that users access and 10.10.10.1 as the example IP address for the origin server.
How it works
If you are new to CDN, we recommend reading this section. If you are familiar with the concepts, skip ahead to the configuration steps.
Procedure
A key advantage of CDN is that it is non-intrusive to your servers. You do not need to modify any business code. Simply direct your website's traffic to CDN with a few configuration steps to accelerate content delivery. This guide will walk you through the configuration with a use case, explaining each setting along the way.
Before you begin, complete the following steps:
Create an Alibaba Cloud account. If your accerlation region includes the Chinese mainland, complete identity verification. For more information, see Create an account and identity verification.
Step 1: Add a domain and an origin server
Configure your domain
Add your domain to CDN. It allows CDN to identify and accelerate requests for your domain.
Verify domain ownership
Alibaba Cloud CDN needs to verify that you own the domain you are adding. If you have completed the verification or do not see a verification tab, skip this step.
Configure the origin server
The origin server is the web server that hosts your website content. Configure the origin sever information so CDN can fetch resources from your origin when they are not cached.
Test the domain
We recommend testing your domain locally before pointing your DNS records to the CNAME. This ensures a smooth transition without affecting your online services.
NoteSimulated access will incur charges for basic CDN services and any value-added services you test. The billing is the same as for regular CDN usage. For more information, see Billing overview.
Step 2: Configure the CNAME record
Before connecting to CDN, user requests for your domain go directly to your origin server. After integrating with CDN, requests are first sent to the nearest CDN point of presence (POP). The POP then determines whether to forward an origin request to your server. Configure a CNAME record to switch the request path from a direct connection to one that goes through CDN.
A CNAME record is a type of DNS record that maps one domain name to another. For more information about CNAME records, see What is a CNAME record?.
Step 3: Configure an HTTPS certificate
If your domain supports HTTPS, configure an HTTPS certificate in CDN to maintain HTTPS access.
Skip this section If your domain has not supported HTTPS and you do not plan to enable it.
Enabling HTTPS will generate HTTPS requests. Charges for HTTPS requests cannot be offset by CDN data transfer plans. Ensure your account has a sufficient balance or purchase an HTTPS request plan to avoid service suspension due to overdue payments. For details, see Billing of HTTPS requests for static content.
Step 4: Verify that CDN caching is working
If you have completed the above steps but are still experiencing access issues, see Service unavailability and exceptions.
At this point, the main configuration for Alibaba Cloud CDN is complete, and your website can now be accelerated through the CDN. However, to ensure the security and stability of your website, we strongly recommend you also configure security and cache policies.
Optional configurations
Security
Your domain may be subject to malicious attacks or traffic theft, which can cause sudden high bandwidth usage or large data transfers, resulting in excessive fees. Therefore, we strongly recommend configuring appropriate security measures to prevent such risks.
If your domain is under a malicious attack or you receive a large bill, follow the documentation to quickly investigate and mitigate the issue. For details, see Best practices for preventing traffic abuse.
Performance
We recommend configuring features like cache expiration and page optimization to improve cache hit rates and access performance.
















