I have installed nginx by creating a demo user with sudo rights and disabling the root now on Debian 6 Server using the script - http://www.lowendtalk.com/discussion/3965/leb-setup-script-for-debian-6-vps-nginx-mysql-iptables-etc/p1
But I am confused as in what should be the permissions of the directories within the Webroot at /var/www/mysite/public/mymainsitedirectory
I have logged in using the demo user and then do I need to do
sudo chown -R www-data:www-data mymainsitedirectory
, which will change the ownership of all the files/directories within mymainsitedirectory.
Is this the right way ? or I am missing something..