Question

Apache Virtual Hosts – Server error

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?


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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