I am currently using apache on linode to host my website. I am using a number of sub-domains each of which is accessible only with non-www url. www url gives 503 error.
However, I wish my domains to be accessible from both type of urls. A typical config for making a virtual site looks like this :-
<VirtualHost *:80> # Admin email, Server Name (domain name), and any aliases ServerAdmin email@example.com ServerName www.mobiles.xyz.com ServerAlias mobiles.xyz.com # Index file and Document Root (where the public files are located) DirectoryIndex index.html index.php DocumentRoot /home/prashant/public/xyz.com/public/mobiles # Log file locations LogLevel warn ErrorLog /home/prashant/public/xyz.com/public/mobiles/log/error.log CustomLog /home/prashant/public/xyz.com/public/mobiles/log/access.log combined </VirtualHost>
A/AAAA records at linode looks like this :-
Can anyone suggest me what is wrong in my approach ? Please comment if I am unclear in asking my doubt.