By nepsilon
Would like to know where i’m making a mistake with the 2 sites i have that i can only access like : site.com instead of www.site.com
I have 3 domains / virtual hosts setup and 1 of them is working perfectly. However the 2 other are setup identical but have this problem.
I did also sudo service apache2 reload to take the new settings but nothing has happened.
Thank you very much for your help.
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!
This comment has been deleted
Hi!
Based on the error message you’re receiving (NAME_NOT_RESOLVED), there is an issue with DNS records for this domain that is preventing it from resolving outside of the ‘www’ subdomain. To correct this, you will need to update the DNS records for this domain to ensure that the root domain resolves to the same IP address as the ‘www’ subdomain (with an A record of its own), or else that it contains a CNAME record pointing to the ‘www’ subdomain, which will result in it resolving to the same IP address as the subdomain by default.
Hope this helps!
DigitalOcean Support
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.