First I followed this tutorial here https://www.digitalocean.com/community/articles/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-12-04 and now I’m following this one right here https://www.digitalocean.com/community/articles/how-to-set-up-nginx-virtual-hosts-server-blocks-on-ubuntu-12-04-lts--3 but there seems to be a kind of a problem here because while on the first link the STEP SIX says to set root to “root /usr/share/nginx/www;” and in the second STEP FIVE sets the root to root /var/www/example.com/public_html;
Do I have to go one way or the other?
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!
<b>“Following the two tutorials is a bit redundant right?”</b> <br> <br>Yes; sorta. The two articles serve two distinct purposes. However, there is some overlap. Thus, to duplicate the overlapping portions of the two tutorials on your droplet… yes, that would be redundant.
Since you’re going to host multiple websites on your droplet you should store them in <code>/var/www/example.com/public_html</code>
You can put the root folder anywhere you want, just be sure that www-data:www-data are the owners, the tut is wrong.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.