Hi All! I have been following this tutorial https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-18-04 and have run into a problem.
There are 2 main .config files 000-default-le-ssl.conf 000-default.conf I carefully amended these and the main site still works.
I have 2 other sites thenegativescanner.com.conf (created and enabled)
for http://www.thenegativescanner.com/
The thenegativescanner.com used to point to the main site but now it nolonger points to the main site which is great I guess but it says:
www.thenegativescanner.com server IP address could not be found. DNS_PROBE_FINISHED_NXDOMAIN
I have the A record pointing to the right server.
I feel like I am almost there but so far away. Any thoughts?
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!
Hello,
Have you created separate vhost files for each domains you have on your droplet?
The files
000-default-le-ssl.conf
000-default.conf
should only be used for a default/example config. If you want to add another website to your droplet, you’ll need to follow the process of creating a vhost file for it.
The tutorial itself should show you how to create the vhost for an example.com domain.
Regards, KFSys
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.