Welcome! Log In Create A New Profile

Advanced

Problem with Git, Smart HTTP and nginx configuration

Posted by MollocH 
Problem with Git, Smart HTTP and nginx configuration
April 22, 2012 09:05AM
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
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 196
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready