I have just setup my VPS with centos and using bind server to add domains to it. My only problem is that when I access the domain with www. it doesnt work. After I investigated my problem on the interwebs I found out that by adding a IN CNAME to the domain should work, but it doesnt.
Here is how my records file looks like:
$ttl 38400
senatoronline.ro. IN SOA ns1.bebliuc.ro. bebliuc\.george.gmail.com. (
1365567122
5M
3600
604800
38400 )
senatoronline.ro. IN NS ns1.bebliuc.ro.
senatoronline.ro. IN NS ns2.bebliuc.ro.
senatoronline.ro. IN A 176.223.127.161
ns1.bebliuc.ro. IN A 176.223.127.161
ns2.bebliuc.ro. IN A 176.223.127.161
senatoronline.ro. IN MX 10 mail.bebliuc.ro.
www.senatoronline.ro. IN CNAME senatoronline.ro.
*.senatoronline.ro. IN A 176.223.127.161
LE : VHosts file
<VirtualHost *:80>
ServerName senatoronline.ro
ServerAlias www.senatoronline.ro
ServerAdmin [email protected]
DocumentRoot /var/www/senatoronline.ro
<Directory /var/www/senatoronline.ro>
AllowOverride All
Allow from all
</Directory>
</VirtualHost>
Any help with this is MUCH appreciated.
Thanks