Hi all ,
i was set up lemp and vsftpd. No problem about installing. my question is when i connect to server by ftp , i dont see the nginx’s web folder. i want to use vps as a web server. so i need to upload web files to that folder. i wrote "chown root:root /usr/share/nginx ". but it doesn’t work. i searched other topics and tutorials but i couldnt find anything. my web server works right now. thanks for your help.
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!
Chiro -
The default web root folder usually is /usr/share/nginx/html or www
Also, you should probably move your web root to /var/www or /srv/www because it is not good practice to leave it in the /usr/share/nginx folder. You can do this by editing your site web config in /usr/share/nginx/sites-available
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.