Why Can't I Access a Web Page or Play a Video After I Enable CDN?
Symptom
After CDN is enabled, a web page cannot be accessed or a video cannot be played.
Check Items
- Whether the CDN origin server is faulty
- Whether CDN acceleration is enabled for the domain name
- Status code and domain name configuration
- Whether your HUAWEI ID has outstanding payments
Procedure
- Check whether the fault is caused by the origin server or CDN points of presence (PoP). For details, see How Do I Check Whether an Access Fault Is Caused by a CDN PoP or Origin Server?
- Check whether CDN acceleration is enabled for the domain name.
If you just added an acceleration domain name on the CDN console and are testing the domain name before adding a CNAME record, skip this step and configure the domain name as instructed in Getting Started.
Check whether the domain name is resolved to CDN. Take the Windows operating system as an example. Open the Command Prompt and run the following command:
nslookup -qt=cname Domain name
If the command output contains .cdnhwcedi10.com, the CNAME record has taken effect.
- If the command output does not contain .cdnhwcedi10.com, the domain name has not been resolved to CDN. You can test the domain name after adding it on the CDN console. After the test is successful, add the CNAME record provided by CDN to the record set of the DNS provider. For details, see Configuring a CNAME Record.
- If the CNAME record has been correctly configured, check the time to live (TTL) of the previous resolution record of the domain name on the same resolution line. The TTL specifies the cache duration of a resolution record on the local DNS server. The newly added CDN CNAME record takes effect only after the TTL of the previous record expires.
If the domain name resolution is normal, proceed to the next step.
- Check the CDN status code and domain name configuration.
- If status code 4xx, 5xx, 301, or 302 is returned when you attempt to access a web page or video, fix the fault by following the instructions in the links below:
- 4xx: Why Is a 4XX Status Code Returned When I Request Resources from My Acceleration Domain Name?
- 5xx: Why Is a 5XX Status Code Returned When I Request Resources from My Acceleration Domain Name?
- 301/302: Why Does a 301/302 Redirect Loop Occur When I Request Resources from My Acceleration Domain Name?
- Check whether the origin server configuration is correct. Log in to the CDN console and check whether the origin server is configured correctly on the Basic Settings tab of the domain name. Correct the IP address or domain name of the origin server if necessary.
- If status code 4xx, 5xx, 301, or 302 is returned when you attempt to access a web page or video, fix the fault by following the instructions in the links below:
- Check the credit balance.
If your account has outstanding payments and is in the retention period, the system will disable CDN for your acceleration domain names and you cannot use CDN. View the outstanding amount of your account in the Billing Center.
If the fault persists, submit a service ticket.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.