Question

Nginx new server block still going to default page

Hello, I am new to the Ubuntu world and have been following the article, https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-20-04 however I have run into a bit of a problem! I have got to the end of step 5 and all I am getting is the default Nginx page, not what I have typed in the html block. I have it it again on a fresh ubuntu install and got the same issue. what have I done wrong!?

Show comments

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.

Thanks @KFSys ,

Don’t know what was the issue, it wasn’t in sites-enabled, and there was an issue with certbot adding info to the wrong block.

So I have wiped it all and started again, for the 4th or 5th time…and it has worked!!

Hi @patrickb,

Can you please post the Nginx configuration file for the domain you are using? Additionally please let us know the path to the file you are posting so that we know everything looks alright.

As soon as we have the Nginx configuration file for your domain, we should be able to take a look at the way you’ve configured it and see if everything is done properly or needs to be changed a bit.

Regards, KFSys