Hi,
I encountered an error while using nginx and smart http (git) over cgi.
I use the following setup: Nginx -> fcgiwrap -> smarthttp -> git
Everything seems to run fine. I can access the repo via the following configuration: http://pastebin.com/VfTxKji0
However I cannot push back into the repository. That is caused by git needing a username provided by the basic authentication from nginx.
BUT basic authentication is not working using "location ~ /(/.*)". (got this from a howto: http://www.toofishes.net/blog/git-smart-http-transport-nginx/)
If I change it to "location / ", basic authentication works, but I keep getting a cgi error (the scriptname does not seem to be passed correctly).
so basically I need a "location" instruction which catches the right request ... but I can't figure out what would be the right instruction :(
I hope somebody has an idea on how to fix this.
Thanks in advance for your help :)
Greetings