Question

Nginx domain name resolves using curl but not using the browser

I followed the tutorial on installing nginx and adding a domain name. The domain name is abdou.dev. I can curl it via the terminal and I get back the html I expect, It also works with a proxy like hidester. But I can’t reach it using the browser. I tried different browsers, I cleared the cache, but no use. Any idea? And thanks in advance.


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 @aouahib,

This seems like an issue with the Nginx configuration file rather than anything else.

In such cases, It’s always best to stick with the basics and see if everything will workthat way as well. The best place to take a basic config that should JUST work is from here:

https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-20-04

I guess it’s because .dev domains are on HSTS preload list. I’ll configure SSL and see.