DEV Community

Imam Ali Mustofa
Imam Ali Mustofa

Posted on

CNAME Between cPanel and CyberPanel throught CloudFlare

While using CyberPanel there were some obstacles that I faced, but that's where the fun lies.

After so long I wanted to link subdomain from old server hosting (cPanel) to my new new hosting (CyberPanel) finally answered. It took me a long time to realize my own stupidity in this case.

cPanel - Shared Hosting

Main Domain: www.cpanel-domain.com

I want to create a new subdomain in cPanel that integrates with CloudFlare. So I went to the CloudFlare Dashboard to add a new subdomain to DNS Management.

New subdomain: new.cpanel-domain.com

So what I do is:

  1. Login to CloudFlare Dashboard
  2. Add a new record
  3. Fill with CNAME new.cpanel-domain.com = app.cyber-panel.com

CyberPanel - VPS

Main Domain: www.cyber-panel.com

Where is my new application here, because it can only run on a VPS and I want to use a subdomain that is on cPanel.

What I did was:

  1. I created a new website with the name app.cyber-panel.com
  2. Go to https://cyber-panel.com:8090/websites/app.cyber-panel.com
  3. Then select the "Domain Alias" menu or https://cyber-panel.com:8090/websites/app.cyber-panel.com/domainAlias
  4. Select "Create Alias"
  5. Fill in the alias for the website in CyberPanel with the subdomain in cPanel.

Top comments (0)