I followed the tutorial for setting up virtual hosts on apache with Ubuntu 18.04. One of my sites is running and findable using it’s domain name (I own both domains). The other is only findable if I type in the server IP. Any suggestions on where to look for errors in my config?
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.
Hi @chsoneal,
Can you confirm you’ve created separate Vhost files for your websites? If you haven’t please make sure you have like so
Create the Vhost for your domain in Directory -
/etc/apache2/sites-available/example.com.conf
where example.com.conf is your domain name. The file should contain the followingPlease note, you’ll need to replace example.com with your domain name. Once you have created your website, type in the following
And then create your symlink
Restart your Apache and you are ready to go!
Regards, KDSYs