Correct HTML is shown at IP address, but nothing served at domain

I’m trying to serve the default HTML file from nginx, which happens when I CURL/PING the domain, but not when I try to navigate to the domain in a browser. WHOIS returns the correct name servers, HTTP traffic is allowed in UFW, and the correct IP address is associated with the domain. Any suggestions?



What do you get when you use the domain? Can you print the nginx server block so we can help?

Submit an 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.


As you are able to ping the domain name and it returns the correct IP address and also you are seeing the correct content with curl, this would definitely mean that you have to clear your browser cache in order to be able to see the correct content.

Hope that this helps! Regards, Bobby