This is what I did:
- CentOS 6.2 server
- installed nginx
- installed vsftpd
- in vsftpd.conf I set chroot_local_user=YES
chroot_local_user=YES - created a new user "bleh"
- created directory /home/bleh/public_html/
/home/bleh/public_html/ - in virtual.conf I set location / { root to /home/bleh/public_html/
/home/bleh/public_html/ - and finally did chmod 755 /home/bleh/
chmod 755 /home/bleh/
Is this safe? Is this acceptable?
I ran into all sorts of permission problems when I tried to use /var/www//var/www/ as root
root. The above worked and the server is delivery data.