Getting Started with ArvanCloud CDN
By using ArvanCloud Content Delivery Network (CDN), your host's origin server is effectively placed behind the Arvan edge servers, and thus any request from a user to the origin server will be received and responded to by ArvanCloud's edge servers.
The necessary steps to begin using ArvanCloud's CDN entails adjusting the DNS. The step by step article below will assist you in this:
- Getting Started with ArvanCloud DNS
Once you are have read the above article, continue along with this CDN getting started guide.
First Step: Change NS Records
As expressed at the beginning of the ArvanCloud DNS article, you can consider your domain activated in the ArvanCloud user panel once your domain's existing NSs are changed to ArvanCloud's.
This would be your first step in the ArvanCloud CDN getting started guide. If you are unclear on how to do that, we have a few articles that will assist you through the path:
- The Must-Dos Before Changing NSs to ArvanCloud's NSs
- How to Change NS Records for IRNIC
- How to Change NS Records for .com
Second Step: Make Sure IP Addresses in A Records are Correct
Once your domain is submitted on ArvanCloud's user panel, the A records related to your main domain and subdomain will be added automatically to the DNS Settings under the Manage Records section in ArvanCloud's CDN menu.
Note: Absolutely refrain from deleting the automatically create A records in the DNS Records settings under the CDN menu.
A record IP addresses that are added automatically to the DNS Records section need to be the IP address for your origin server. Please navigate to the DNS Records under the CDN menu in the ArvanCloud user panel to examine the A records' IP address. If the IP addresses listed are anything other than your origin server's IP address, use the Edit option and change the IP address to your origin server's existing one.
Third Step: HTTPS Settings
After completing the above step and having the term "Active" in front of your domain in the CDN menu, it is time to navigate to the HTTPS Settings.
If your website has an SSL license, then enable the HTTPS User Certificate option in the HTTPS Settings.
In the only pop-up window, you will be asked to upload your .cert and .key files, so once you have selected them, click on "Upload Certificate".
The articles listed below will be able to provide more context for you:
- Exporting Certificate and Private Key through cPanel
- How to Receive a Certificate Chain Using a Browser
- Creating a Certificate Trust Chain
In case you do not want to go through all the steps needed to activate your existing HTTPS certificate, you can simply click on HTTPS Arvan Certificate, and we will issue a free SSL certificate for you with the help of Let's Encrypt.
Once you click on the option, you will be greeted with the below window. You can request the certificate to be issued for both your main domain and select subdomains, or by enabling the "SSL Activation for All Subdomains" option, the certificate will be requested for all your subdomains as well.
Fourth Step: The Right Redirection Settings
If your website's domain is example.com and the traffic would need to be directed from www.example.com to example.com, or vice versa, your primary domain is www.example.com, and the traffic for example.com must be directed to www.example.com, this would need to be cleared up in the Dashboard section under the CDN menu named as "Redirect Domain".
If your website supports HTTPS, then it would be best for ArvanCloud's edge servers to mediate between your users and the origin server so the communication would be based on HTTPS rather than HTTP. Therefore, even if a user attempts to access your website on HTTP, they will be converted to HTTPS. To do this, navigate to the HTTPS Settings under the CDN menu in the ArvanCloud user panel and click on the "Automatic Convert HTTP links to HTTPS" field to enable it.
The article listed below will help you with that:
- Redirection Settings in ArvanCloud's User Panel
Note: If you have configured the Redirection Settings (regardless of whether it is for a domain or to convert HTTP to HTTPS) in either your host's origin server or from ArvanCloud's user panel, then you will not need to do the same in both; doing so would cause the Too Many Redirects error to appear. For instance, if you have applied convert HTTP to HTTPS in your Redirect Settings on your origin server, then please refrain from enabling the "Automatically convert HTTP links to HTTPS" option in the HTTPS Settings under the CDN menu in ArvanCloud.
The last step that is after completing the above steps would be to activate the Cloud icon for your domain, but before you do, please make sure that you have taken all the necessary prerequisites to prevent any preventable issues from occurring:
- Requirements Before Enabling ArvanCloud's CDN and Cloud Icon
Note: If you are unfamiliar with certain sections of the ArvanCloud user panel and its settings (especially the Cloud Security section), please familiarize yourself with the settings by reading our user guides before changing anything. You can also click on the Support button on the upper right menu in the user panel's main dashboard to submit a new ticket and have ArvanCloud's support team guide you through the settings that would best suit your situation.
Note: Please note that when using ArvanCloud's CDN service, all the inbound and outbound traffic will be free up to 20 Gigs. Afterward, costs will be estimated in a linear fashion and based on use. To learn more about our pricing model, please read the article below:
- Content Delivery Network Pricing