By paragkenia
Hi,
I created a virtual host and httpd.conf reads as follows
<VirtualHost 146.185.136.14> DocumentRoot /srv/http/shilpi.com ServerName shilpi.com ServerAlias www.shilpi.com ErrorLog “/var/log/httpd/shilpi.com-error_log” CustomLog “/var/log/httpd/shilpi.com-access_log” common <Directory “/srv/http/shilpi.com”> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> </VirtualHost>
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???
Thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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.
thinking about it, I think @ on the right will only work with a CNAME. <br> <br>if you add an A, put in your IP address on the right, <br>if you add a CNAME, put in shilpi.com on the right <br> <br>CNAME or A will work, you only need one or the other, not both.
Its working now. <br> <br>I put www in the left column and @ in the right column in CNAME record. <br> <br>Thanks
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.