Question

Apache; connection refused

Hello, i am using apache to create a small webserver. Today i tried to add a domain to my droplet. Sadly this dosent work because every time i try to acces the domain, i get the Error: “Err_Conection_Refused”. I already set up the Namespaces. With my domain profider. Here is my config file:

<VirtualHost *:80>

    ServerName dasnetzwerk.dev
    ServerAlias www.dasnetzwerk.dev
    ServerAdmin admin@example.local

    DocumentRoot /var/www/dasnetzwerk.dev/public_html
    <Directory /var/www/dasnetzwerk.dev/public_html/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Require all granted
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

How you can see I also listen on port 80.

I hope you can help me.


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,

Once you’ve changed your name servers, you would also need to add an A record for your domain name to point to the Droplet’s IP address.

Also, after the DNS change it could take up to 24 hours for the DNS cache to clear over the Globe before you could see the new changes.

Let me know how it goes after that!

Best,

Bobby