I use CentOS 7, OpenLiteSpeed, CyberPanel, and Cloudflare.
Here is a list of records on my Cloudflare:
I created CNAME “scontent.mydomain.com” which serves as the alias of “mydomain.com” (similar to www). After creating a record, I go to “scontent.mydomain.com” and get an error: 404 Not Found but when I use www and non-www I can still access it normally.
I tried editing the vhost conf file to: vhAliases www.$VH_NAME, scontent.$VH_NAME
Then restart the server but the same error still occurs.
What is the problem here? How can I fix it?
Thanks.
I have solve this issue today in 2022-06-08T17:00:00Z
In my case; i want to point my domain which is in cPanel to CyberPanel.
cPanel domain is www.cpanel-domain.com
CyberPanel domain is www.cyberpanel-domain.com
and I want to redirect a subdomain that is on cPanel to an application hosted on CyberPanel with the subdmoain new.cpanel-domain.com
.
What am I doing?
- Setting CloudFlare as usual to create and redirect CNAME
- go to
https://cyberpanel.com:8090/websites/www.cyberpanel-domain.com
- and select “Domain Alias” atau pergi ke
https://cyberpanel.com:8090/websites/www.cyberpanel-domain.com/domainAlias
- Click “Create Alias” and fill with
new.cpanel-domain.com
Done!