sentora / sentora-core

Sentora is a web hosting control panel written in PHP for *NIX
GNU General Public License v3.0
648 stars 446 forks source link

domain without www is 404 #144

Closed adamhk0 closed 1 year ago

adamhk0 commented 9 years ago

http://forums.sentora.org/showthread.php?tid=1353

After I changed @ to mydomain.com in CName record at Sentora DNS Manger. The website show up properly.

Before Host Name:www Target: @ After Host Name:www Target: mydomain.com

Still don't know why. some of my sites don't have this problem

Caffe1neAdd1ct commented 9 years ago

@ should work to reference the domain...

Could you check the zone file is being generated correctly when you use the @ reference?

vi /etc/sentora/configs/bind/zones/domain.com.txt

For example I have:

@ 3600 IN A 000.000.000.000

and a CNAME of:

www 3600 IN CNAME @

If it hasn't changed yet force a re-run of the daemon.php then check again.

Dukecitysolutions commented 1 year ago

Can't reproduce in v2. All works as intended. Closing for now.