Change document and problems with permission

Hi,

I’m trying use nginx in my home folder. What I have to do? Look at my
files,
please:

/etc/nginx/nginx.conf
http://p.ngx.cc/94

/etc/php/php-fpm.conf
http://p.ngx.cc/1e3b

I type:
"code
setfacl -m u:http:x /home/myuser
setfacl -m u:http:x /home/myuser/workspace
setfacl -m u:http:rwx /home/myuser/workspace/php
"

That configuration works. But I have problems with write permissions.
Scripts broke. I don’t want give chmod 777 on all files. I want to know
the
best way, the nginx right way to change the document root.

I use nginx, php-fpm and mysql.

Can you help me?

Posted at Nginx Forum: