Showing the nginx welcome message on hope page

February 21, 2015 5.9k views

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?


1 Answer

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.

In this guide, we'll get a LEMP stack installed on an CentOS 7 VPS. A LEMP software stack is a group of open source software that is typically installed together to enable a server to host dynamic websites and web apps. This term is actually an acronym which represents the **L**inux operating system, with the **E**Nginx web server (which replaces the Apache component of a LAMP stack). The site data is stored in a **M**ySQL database (using MariaDB), and dynamic content is processed by **P**HP.
Have another answer? Share your knowledge.