Report this

What is the reason for this report?

Domain only works with "www." in front

Posted on May 1, 2019

Hi,

I recently purchased a Droplet and I’m really enjoying the speed of it. However, my domain isn’t accessible unless you type “www.” in front of the URL. For example, www.meneergadget.nl works, but meneergadget.nl or https://meneergadget.nl doesn’t.

I have used the DigitalOcean nameservers on the DNS settings for my registrar and this is what my settings look like: https://i.imgur.com/O56UUJJ.png

Hope someone can help me.



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.

@kiwohs

Thanks for posting this question, I think you have a problem with your web server setup if you are using apache web server you need to add these two directives so your website will work with and without www.

ServerName meneergadget.nl
ServerAlias www.meneergadget.nl

Then restart apache sudo systemctl restart apache2

Hope this helps.

Then restart apache sudo systemctl restart apache2

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.