Report this

What is the reason for this report?

Apache Virtual Hosts – Server error

Posted on June 24, 2020

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!

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.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.