Showing the nginx welcome message on hope page

Hi I just installed a droplet for the first time. When trying to enter my wordpress site i get the nginx welcome message on the screen. Looks like this:

Welcome to nginx!

If you see this page, the nginx web server is successfully installed and working. Further configuration is required.

For online documentation and support please refer to Commercial support is available at

Thank you for using nginx.

What have i missed?


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.

Where are your Wordpress-files located?

The default nginx htdocs-root is /usr/share/nginx/html

If you’ve installed the files at, say, /usr/share/nginx/html/wordpress, then you must change the root-setting in the file /etc/nginx/conf.d/default.conf to that directory, like this

server { root /usr/share/nginx/html/wordpress; }

Plese read the article on how to set up nginx to work with the PHP-engine over socket (CentOS) if you have not already done so.