I am using the default config while adding the specific directory with nginx installed on my ubuntu 12.04 machine.
server { #listen 80; ## listen
I found a work around: Moved the folder to nginx configuration folder, in my case "/etc/nginx/my-web-app". And then changed the permissions to root user "sudo chown -R root:root "my-web-app".