RE: Error access to Subdomains
11-01-2021, 06:46 AM
(This post was last modified: 11-01-2021, 08:17 PM by spoonman.)
(09-14-2021, 01:32 AM)christnicolas Wrote: Hi guys, I really need your help.
So, the problem is I cannot access Subdomains. I have installed it successfully but when accessing subdomains, it failed. Subdomain included sentora.[domain].dev., on DNS: sentora, record A, TLL 1H.
Could anyone help me? Thanks in advance!
sub-domains are a CNAME record not A records.
Please supply a screenshot of the DNS Manager for the domain on the Sentora hosting panel.
What is a CNAME Record?
A CNAME, or Canonical Name record, is a record that points to another domain address rather than an IP address.
For example, say you have several subdomains, like www.mydomain.com, ftp.mydomain.com, mail.mydomain.com etc and you want these sub domains to point to your main domain name mydomain.com.
Instead of creating A records for each sub-domain and binding it to the IP address of your domain you can create CNAME records.
As you can see in the table below, in the case where the IP address of your server changes, you only need to update one A record and all the subdomains follow automatically because all the CNAMES point to the main domain with the A record:
(sub)Domain / Hostname | TTL | Record Type| Target / Destination
mydomain.com 3600 A 111.222.333.444
www 3600 CNAME @
ftp 3600 CNAME @
mail 3600 CNAME @
test 3600 CNAME @
After you add the CNAME Wait on daemon update or run it manually and restart apache.
Code:
php -q /etc/sentora/panel/bin/daemon.php
Ubuntu
Code:
service apache2 restart
CentOS
Code:
service httpd restart
NOTE ! DNS propagation can take up to can take up to 72 hours to propagate worldwide
"Nothing is true; everything is permitted"