Description
This topic describes how to troubleshoot unreachable websites after Alibaba Cloud CDN acceleration is used.
References
After you use Alibaba Cloud Content Delivery Network acceleration, if you return 304, 403, 404, 503, and 504 status code, you can perform the following operations:
- If access to Alibaba Cloud Content Delivery Network acceleration resources returns 304 status code, see Use Alibaba Cloud Content Delivery Network acceleration domain names to access resources and return 304 status code.
- If access to Alibaba Cloud Content Delivery Network acceleration resources returns 403 status code, see Access Alibaba Cloud Content Delivery Network acceleration resources return 403 status code processing.
- If access to Alibaba Cloud Content Delivery Network acceleration resources returns 404 status code, see Access Alibaba Cloud Content Delivery Network acceleration resources return 404 status code.
- If access to Alibaba Cloud Content Delivery Network acceleration resources returns 503 status code, see Origin servers have security protection and other reasons that cause access Alibaba Cloud Content Delivery Network domain names to report 503 error handling.
- If access to Alibaba Cloud Content Delivery Network acceleration resources returns 504 status code, see Use Alibaba Cloud Content Delivery Network after access domain name prompt "504 Gateway Time-out" error.
If the problem cannot be solved through the preceding operations, you can perform the following operations to troubleshoot the problem. This topic uses a www.example.com
accelerated domain name as an example.
- For more information about checking whether Alibaba Cloud Content Delivery Network access exceptions are Alibaba Cloud Content Delivery Network node problems or origin problems, see How to troubleshoot whether Alibaba Cloud Content Delivery Network access exceptions are Alibaba Cloud Content Delivery Network node problems or origin problems.
- If the origin server access exception occurs, check the origin service.
- If a Alibaba Cloud Content Delivery Network exception occurs, proceed to the next troubleshooting step.
- Check whether the domain name has been Alibaba Cloud Content Delivery Network accelerated.
- Run the ping command to test the network connectivity with the accelerated domain name. If the response is the same as the CNAME value of the accelerated domain name in the Alibaba Cloud Content Delivery Network console, the Alibaba Cloud Content Delivery Network acceleration has taken effect.
- If the IP address is still the origin server IP address of the domain name, the domain name acceleration does not take effect. For more information, see Domain name acceleration configuration.
- Check whether back-to-origin is normal. If you have determined to resolve to the Alibaba Cloud Content Delivery Network through step 1, you only need to access a URL under the domain name in the browser to know the access effect after Alibaba Cloud Content Delivery Network acceleration.
Modify the hosts file. For more information about how to configure a host, see How to bind a domain name to a host. After adding similar192.168.0.1 www.example.com
entries to save, clear the browser cache and reopen it. If you access it again, it is the back-to-origin access effect.
Description:
192.168.0.1
is the origin IP address andwww.example.com
is the domain name to be checked.- If the access is still abnormal, indicating that the origin site access is abnormal, directly check the origin site service.
- If the back-to-origin is normal and abnormal after Alibaba Cloud Content Delivery Network, proceed to the troubleshooting operation in the next step.
- Check whether the Alibaba Cloud Content Delivery Network configuration is correct. Log on to the Alibaba Cloud Content Delivery Network console, check the configuration of the domain name by
www.example.com
this domain name, and check whether the CNAME matches correctly.
Note: The origin server on the Alibaba Cloud Content Delivery Network console is the IP address of the corresponding origin server. Whether you set an IP address or a domain name here, it will be resolved to the corresponding domain name for back-to-origin. The site corresponding to the origin site is determined by returning to the origin host, so returning to the origin host must correspond to the site of the origin external service.
The CNAME generated on the platform by thewww.example.com
domain name can only be used bywww.example.com
domain names and cannot be provided to other domain names. For example, the following example shows the incorrect use of aimg.example.com
domain name. Theimg.example.com
CNAME must start withimg.example.com
. - Check the configurations of the origin server. Log on to the Alibaba Cloud Content Delivery Network console and check whether the configuration of the origin server is the origin server of the domain name in the basic configuration of the domain name. If not, change it to the corresponding server IP address.
- Check the security policies of the origin server. If all the above configurations are correct, the Alibaba Cloud Content Delivery Network has been properly configured. Check whether some security policies, such as firewalls, are configured on the origin server. If a security policy is configured, check whether there are IP blocking records for the following four IP segments. If there are blocking records, add a whitelist.
140.205.127.0/25 140.205.253.128/25 139.196.128.128/25 101.200.101.0/25
-
Check whether the IP address corresponding to the accelerated domain name is added to the IP blacklist:
References
- Why is content delivery slow after my website is accelerated by Alibaba Cloud CDN?
- After using Alibaba Cloud Content Delivery Network acceleration, Websocket objects cannot be accessed
- Use Alibaba Cloud Content Delivery Network acceleration to access the page blank
- Alibaba Cloud Content Delivery Network a region node access exception
- Alibaba Cloud Content Delivery Network accelerate OSS origin resources
Applicable scope
- CDN