I have got a virtual private server with nginx Virtual Hosts setup (Server Blocks).
I\'ve installed Git and got my ssh keys authenticated with GitHub.
I have
Turns out the problem was in the permission. I fix it with the following command
sudo chown -R $USER /var/www
Please make sure with the $USER variable. I tested and worked on Ubuntu Distro
$USER