Preface: In the previous articles, I completed the deployment of my personal blog to the Alibaba Cloud server and implemented https encrypted access. However, due to the large size of the images and js files, the access speed was slow and unstable, so I thought of using CDN to speed up the website. Access speed, hence this article.
Preconditions:
- The website can be accessed normally
- Register a Youpaiyun account
- The website must be registered (for domestic websites)
Step 1: Create a CDN service on Youpaiyun
Then follow the steps below, click Create directly
, and then copy your own CNAME resolution address in the domain name management configuration item.
Step 2: Alibaba Cloud reconfigures the domain name mapping
Click Add Record and configure it like this.
The final result is as follows, and then you can accelerate access to your website through CDN.
About my question:
My problem is that when accessing backend data, you also need to use this domain name + port, and then Paiyun disables the port by default, so you can use www.xx.com to access backend data, but not the original xx. com visited.
It took me a lot of time to configure this CDN, which was caused by my limited knowledge of the Internet, so I will summarize it to prevent forgetting.
Then, domain name mapping is very important. If you encounter a problem and deduce it a few times, you can clarify your ideas or ask better questions. By the way, Youpaiyun’s customer service is really invincible. If you really don’t understand something, you can ask directly on the official website. Real people will answer it online. I’m really amazed. Finally, leave a personal website address to communicate with each other. Personal blog , just click on the blue font.
Here are links to his events:https://www.upyun.com/league