A question can only have one accepted answer. Are you sure you want to replace the current answer with this one?
Changed your mind?
You previously marked this answer as accepted. Are you sure you want to unaccept it?
www.domain.com not working, domain.com working, why??
Posted March 7, 201447.1k views
I created a virtual host and httpd.conf reads as follows
CustomLog "/var/log/httpd/shilpi.com-access_log" common
Options Indexes FollowSymLinks MultiViews
allow from all
Now when I visit http://shilpi.com it works but if I visit www.shilpi.com I get the message webpage is not available.
Anybody any clue???
you have to add a www entry to the dns, I think an A record with www on the left and @ on the right will do the trick. After adding it, wait 15+ minutes for the new entry to appear, and the old cached entry to expire.