Question not working, working, why??

Posted March 7, 2014 56.9k views
Hi, I created a virtual host and httpd.conf reads as follows DocumentRoot /srv/http/ ServerName ServerAlias ErrorLog "/var/log/httpd/" CustomLog "/var/log/httpd/" common Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all Now when I visit it works but if I visit I get the message webpage is not available. Anybody any clue??? Thanks

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
4 answers
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.
Its working now.

I put www in the left column and @ in the right column in CNAME record.

thinking about it, I think @ on the right will only work with a CNAME.

if you add an A, put in your IP address on the right,
if you add a CNAME, put in on the right

CNAME or A will work, you only need one or the other, not both.

My domain is not working with http but it is working with www. How to overcome this?