Nginx and Git not working: Failed to modify server : Git cannot be enabled unless a website is

When I enabled Git repositories for a Virtual Server, we get an error: Failed to modify server : Git cannot be enabled unless a website is

Nginx is enabled and running for this Virtual Server

Status: 
Active

Comments

That message is a bit misleading - it should really say that Git cannot be enabled unless an Apache website is. Unfortunately it's not compatible with Nginx, as that webserver cannot run CGI scripts.