How to Change and Install SSL for Hostname In CWP – Control web panel

by Sandeep B.

Today I’ll guide you how to change and install SSL for hostname in CWP panel, since this is the most questioned by our visitor via emails and i decided to provide a tutorial upon this.

Hostname is the most important thing in Linux server, it is associate with mails, rdns and many other services. A valid hostname can offer you issue free operation. Enough i explained lets get started with the guide.

Step 1 :

Ensure you’ve valid subdomain created from your main domain i.e. if your main domain is mysterydata.com then the hostname/subdomain should be like this : server.mysterydata.com or srv1.mysterydata.com or sandeep.mysterydata.com

Step 2 :

Then whatever you choose the hostname ensure you’ve valid “A” record DNS added eg :

Step 3 :

Go to CWP.Admin by using root user and navigate to :

CWP.admin >> Server Settings >> Change Hostname

Now You’ll see change hostname module where you can set hostname double check to add A record DNS from step 2 Enter the hostname in “New Hostname:” field and hit “Change Hostname” button thats it it will automatically install SSL for hostname you can access cwp in https too :

thats it all done start using CWP.

Extra tips :

RDNS/PTR record should be same as server hostname.

If this post helps you in any way please consider a donation

Donate with PayPal :

md-donate

You may also like

3 comments

itay January 1, 2021 - 12:22 am

but what if i want to use the lets encrypt ssl and not a self signed?

Reply
Sandeep B. January 1, 2021 - 7:39 am

It will install LE certs, if you’ve self sign cert after changing hostname then you’ve this reasons:
A record dns for hostname is not there
or
LE CA-server blocks your hostname because of rate limit.

Reply
Saurav Samanta February 5, 2021 - 4:04 pm

HI Sandeep,

Need your support.

I am facing an issue that is I am using CWP as a Control Panel. Hostname as domain I have properly configured with SSL but if the accessing through IP (instead of domain), the entire site with port can be accessible without SSL.

I want all the users to restrict to use IP address. I want to redirect my server IP to particular domain. Can you please tell me the path where I can rewrite to my domain if I am using CWP.

Reply

Leave a Comment