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!

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.

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