Edit: in my case virtual_use_local_privs=TRUE did the trick. i'm trying to force newly created files and directories inside foo/ directory to be owned by nginx user and to set the right permissions ...
This question is a little more general than the title implies. I haven't been exposed to almost any server related code, so I hope you can be gentle with your replies. What I want to know, really, ...