When we install CyberPanel on a server, we can access it using the server IP address. The CyberPanel runs on port 8090, so if your server IP address is 18.104.22.168, you can access it over
https://22.214.171.124:8090. However, this will give you an SSL warning because SSL certificates are always issued for a hostname, not for an IP address.
Why to setup CyberPanel Access over Hostname and HTTPS
Some of the possible reasons are:
- Remembering the hostname is easier than the IP address.
- We can set up SSL certificates for a hostname only.
- When we login to CyberPanel, we send the username and password over the network. It’s good to have SSL certificates in place so that the communication is encrypted and our credentials are secure.
- We can choose any website from the CyberPanel to setup as CyberPanel hostname. We can use any subdomain too for this purpose as long as it points to the server IP address. This way we can choose a random control panel URL, which is more secure than a static IP address.
Setting up CyberPanel Access over Hostname and SSL
The first step is to create a website in the CyberPanel. You can go through the below post to learn how to do it properly.
If you want to use a subdomain for CyberPanel, make sure you create a website for it. Adding a subdomain from the website management tools won’t work.
Once the website is ready for the CyberPanel, go to the Dashboard and click on the SSL button.
On the next page, click on the Hostname SSL button.
On the next page, select the website that you want to use for accessing CyberPanel and click on the “Issue SSL” button.
You will get an alert message with the success message as shown in the below image.
That’s it. We can now access CyberPanel using hostname over HTTPS.
Accessing CyberPanel using Hostname and HTTPS
Go to the URL
https://hostname:8090 and you should see the CyberPanel login page with a valid SSL certificate from Let’s Encrypt.
We can issue CyberPanel Hostname SSL for a single website only. If you issue Hostname SSL for a website, the earlier hostname SSL certificate will be revoked.