Question
Setting up my web root directory
I installed in my LEMP server wordpress under this tutorial https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-nginx-on-ubuntu-14-04 and it works fine.
Then when I go to my server IP it opens the wordpress site. But I need to have many WP sites, so what I did, is I created a directory called secure/ and I copied the content of the wordpress into another directory that I created in secure/ so now the wordpress site is in secure/wordpress/ but still when I go my server IP it shows the wordpress site and it shouldnt since I moved all the content to another directory.
How could that happens?
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.
×
Did you make sure to refresh the page in the browser after moving the files. Your nginx config should route requests to your index.php so you may need to update the configuration to reflect the new location and restart nginx but you should be seeing an error after just moving those files.