Many nginx tutorials say to make ownership of /var/www belong to www-data:www-data but tutorials on vsftpd say to make ownership that of the user you’re using to login via FTP.
So which is the best way to give an FTP user to read/write in /var/www?
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.
Click below to sign up and get $100 of credit to try our products over 60 days!