Using FileZilla Client Questions

May 23, 2014 1.5k views
Hi. I am really new to all of this setting up the web stuff. How do I know which folder in DigitalOcean to put my index.html, css,js,img, etc stuff in? I found on many websites to put it in my var/www folder but I didn't have a www file in my folder so after I created and put my stuff in there, it still doesn't work and when I go on my website it says "nginx" stuff on it. Please help!
3 Answers
Welcome to the wide world of web development! It sounds like you're using Nginx as your web server. You need to open your Nginx configuration file, by default it's named default, like so:

sudo nano /etc/nginx/sites-enabled/default

and find the setting for "root" You can either put your files in the folder defined there or change the setting to point to "/var/www/" If you change anything in that file, make sure to restart Nginx after with:

sudo service nginx restart
How would I go about changing the setting to point to "/var/www/" or for any other directory for that matter?
@taeiscoolaboy: Just edit the file. It's a plain text file, and when you restart Nginx it will pick up the changes.
Have another answer? Share your knowledge.