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

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, 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?

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.

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 :

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