Question

How do I configure Apache and Domains to show my website?

Posted April 19, 2020 252 views
Apache

Hi all,

it’s driving me nuts. I have followed many tutorials on this but I am missing a detail on how I set up Apache and my Domain correctly to show my website.

  • I have made an A-Record “@” and “www” for my Domain, pointing to my Droplet.
  • I configured Apache, created directories and put a index.html in the website Root.

Now, when I try to open my domain.dev, it says it was impossible to establish a connection. Also, when I check my DNS records it shows that the IP A-Record has been distributed pointing to my IP address.

When I try to open my droplet IP in my browser, I see my index.html.

What am I missing?

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.

×
1 answer

Hi @saschaRay,

It sounds to me like you haven’t properly configured the Apache configuration for your domain name. I’ll recommend checking up the following tutorial :

https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-18-04

I know you mentioned you’ve read a lof of tutorials however, I believe it would be beneficial for you to read it.

Now, once you have read it, please try to follow it, it should help you resolve the issue. If it doesn’t, please post your domain’s Apache vhost file in order for us to detirmine if there are any issues with it.

Please mentioned the OS you are using(Ubuntu/CentOS).

Regards,
KDSys

by Lisa Tagliaferri
This tutorial will guide you through setting up multiple domains and websites using Apache virtual hosts on an Ubuntu 18.04 server. During this process, you’ll learn how to serve different content to different visitors depending on which domains they are requesting.
Submit an Answer