How do I make nginx stop showing "Unable to Connect!" and show a site as default?

Trying to get my Wordpress site admin to perform faster so I setup Nginx and Varnish. I got both to setup right but now my site is just blank after configuring Nginx.

How do I point Nginx to my website? I’ve looked all over the internet for the solution. Please point me in the right direction. Thanks!


Without having your Nginx site config, it is impossible to begin analyzing what you did wrong.

Here are the official documentation about Nginx from Wordpress:

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.

Dealing with Web Server issues can be tricky depending on your setup. Being we only provide self-managed hosting, we are limited in what we can do for you in such a situation. We may not be able to login and troubleshoot this for you, however we can provide a few different ideas to help guide you in resolving this situation.

The easiest way to locate the cause of the error is to locate the exact error itself within the log file. This can vary based on your setup, but in general these are good places to look:

/var/log/nginx/access.log /var/log/nginx/error.log

To ensure your server block for Nginx is correct, you might want to read over our article on the subject.

Hope it helps, Jason Colyer DigitalOcean Platform Support Lead