Report this

What is the reason for this report?

Nginx new server block still going to default page

Posted on December 24, 2020

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!?



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.

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

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!!

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.