• 18 October 2024

After transferring your website to ArvanCloud and making DNS settings, before activating the Cloud icon for the records in the ArvanCloud user panel, you should first go through the following steps to ensure that there are no issues:

1. Whitelisting ArvanCloud IPs

If you enable the Cloud icon, the main server hosting your website will only be connected to ArvanCloud’s edge servers. Note that in this situation, user requests will no longer be sent to the main server hosting your website, but will only be connected to ArvanCloud’s edge servers. Thus, if you do not whitelist ArvanCloud IP addresses on the firewall or security devices of the main server hosting your website, there is a possibility that these devices will consider requests sent from these IPs as attacks and block them. To avoid this problem, you can whitelist ArvanCloud’s IP addresses using the following instructions:

  • How to whitelist Arvan Cloud IPs in iptables
  • How to whitelist Arvan Cloud IP addresses in htaccess

 2. HTTPS settings

If you have purchased an SSL certificate for your website and installed it on the main server hosting the website, you must have your certificate file (.crt file) and private key (.key file) in the HTTPS Settings section of the CDN user panel. The following instructions can help you with this:

  • ٍExporting the certificate and private key to cPanel

Make sure to add your certificate with the chain file to this section to avoid errors when opening the website in different browsers. You can use the following links to get the chained certificate file:

  • How to get a certificate with chain using a browser
  • Creating a certificate trust chain

If you do not have a certificate yet and want to use ArvanCloud free certificate, you need to do so before activating the cloud icon. It is very important that this certificate will be issued to you only if the active phrase for your domain is registered in the ArvanCloud user panel in the dashboard, Cloud DNS subcategory (i.e. the NS has been made successfully).

To get a free ArvanCloud certificate, go to the CDN product in the user panel, then to the HTTPS Settings section, and enable the ArvanCloud Certificate option.

3. Setting the Ports

In the default (automatic) mode, the connection between the ArvanCloud Edge servers and the main server hosting your website can be based on both HTTP and HTTPS platforms, depending on the user’s request. So, if you have port 80 or 443 closed on the origin server before you turn on the Cloud icon, make sure that you go to the CDN product in the ArvanCloud user panel, go to the Origin Settings section, and in the Communication Protocol with Origin Server section, select a protocol which its port is open on the origin server hosting your website.

4. Security Settings

Before enabling the WAF service, it is better to put WAF into detection mode for a short time and then adjust the rules of WAF according to the resulting reports. For this purpose, you can use the following guide:

  • WAF Configuration and Settings in ArvanCloud Panel

5. Setting Page Rules

In the ArvanCloud User panel, Content Distribution Network (CDN) product, make sure that you have defined a rule in the Page Rules section for all pages that you do not want to be cached. Make sure that by default, only the static content of your website is stored on ArvanCloud Edge Servers. You can define a rule to store or not store specific content. The following instructions will help you to do this:

  • Page rule settings in the ArvanCloud CDN panel
  • The best settings of the ArvanCloud CDN service for WordPress

6. The Final Verification of The Website on ArvanCloud Edge Servers

Before registering the NS records detected by the ArvanCloud website on your domain provider’s website, first, make sure that there are no problems and errors loading the website and check the correct cache status of the files on the ArvanCloud Edge servers. For this purpose, you can use the instructions to verify the activation of Arvan Cloud CDN before changing the NS records.