Question

website only show "welcome to nginx"

Posted January 22, 2016 49.9k views
Nginx WordPress

today i resize my droplet (isigood) and after that, the site only show


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 nginx.org.
Commercial support is available at nginx.com.

Thank you for using nginx.

how i can fix that ?
my website using cms wordpress..

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.

2 answers

You need to update your /etc/nginx/sites-available/default to include a link to your wordpress page, if you are using port 80 and wordpress try changing the root location under server within that file so it looks like this root /var/www/html;
After that do a sudo service nginx restart and refresh the page.

  • After doing this, I’m getting a “403” error. Our site was working fine over the weekend and today there was a database error.

    I’ve restored the droplet from a backup when the site was working, then got the “Thank you for using nginx” page, I’ve changed the root folder like you’ve mentioned above and now I’ve got a 403 error.

    • What are the permissions on the files in /var/www/html ?

      • Actually, our developer who set up the server never installed nginx, only apache with a lamp stack. for some reason after restoring the droplet to an earlier snapshot, nginx started. stopping nginx and starting apache solved our problem.

i using debian, how i can configure it..?

Submit an Answer