The Settings of Activation Section in the ArvanCloud User Panel
From Activation -> Content Distribution Network (CDN) in the ArvanCloud user panel, you can find out whether the CDN product is activated or deactivated for different records.
However, two main functions of this section are specifying a desired port number for specific records, as well as weighing the different IPs registered for a specific record. In this topic, we discuss how to do these settings.
Adjusting a desired port number for specific records
By activating the ArvanCloud CDN service, the end-user connection with the ArvanCloud edge server establishes only on specific ports, which are as follows:
However, the connection between ArvaCloud edge servers and the main server of your website host can be established on HTTP or HTTPS protocols and on any port.
For example, imagine that you want to connect to cPanel on port 2082. To do this, you must enter the address in the form of cPanel.example.com:2082 in your browser. If the CDN service is activated for cPanel record, and the port number mentioned at the end of the address is not specified in the Activation section, you are not going connect to your cPanel; Because as default, the connection between the ArvanCloud edge server and the main server of your website host still establishes on port 80 or 443.
But by setting the port number in the Activation section of ArvanCloud panel, you just need to enter the same address of cpanel.examle.com into the browser. The connection between ArvanCloud edge server and the main server of your website host establishes on port 2082, while there is also no need for deactivating the CDN service for the corresponding record.
The port numbers of few famous services are as follows:
To adjust these settings, in the ArvanCloud user panel, go to “Content Distribution Network (CDN)” -> “Activation”, and click on the Edit icon in front of the record that you want to change its port. Note that the cloud icon next to the corresponding record must be on.
In the opened window, in the Protocol section, specify that you want the protocol of this connection to be HTTP or HTTPS. Then, in the port section, specify the port number that you want the connection to be established on it, and click Save.
Note: One of the important reasons that you might encounter an Arvan error when visiting the website is to use the default settings for establishing the connection between the main server of your website host and the ArvanCloud edge server, while a specific port on your main server is closed. The connection between our servers and the main server of your website host is automatically set on HTTP or HTTPS protocol according to the request sent by the user. Now, if port 80 (HTTP protocol port number) or 443 (HTTPS protocol port number) is closed on your main server and a user sends a request on this port, the Arvan error will be displayed immediately. To solve this problem, if you had closed a port on the main server of your website host and you want the connections to be established on only a specific protocol (e.g. HTTP), go to “Content Distribution Network (CDN)” -> “Origin settings”, and specify the desired protocol in the “Protocol for Connecting to the Main Server (Default Setting).”
Note that, what you specify in this section will also be applied to all the records in the Activation section.
Weighing Different IP Addresses Registered for a Record
If the main server of your website host has multiple IPs, in the Activation section, you can specify a weight for the main record of your website for each IP. In this way, according to the weight specified for each IP, the request will be sent from the ArvanCloud edge server to that IP.
To do these settings, click on the main record of your website. In the opened window, by clicking on the Plus icon, you can register different IPs for this record. Then, in the Weight section, specify the number of requests that you want to be send to each IP.