Package: fcgiwrap
Version: 1.0-1+squeeze1
Severity: important

It seems to be impossible to set git-http-backend with the squeeze version of 
fcgiwrap.

Every attempt to clone an existing repo with: "git clone 
http://git.example.com/myrepo.git"; fails with:
FastCGI sent in stderr: "Cannot get script name, is DOCUMENT_ROOT and 
SCRIPT_NAME set and is the script executable?" while reading response header 
from upstream

The script "/usr/lib/git-core/git-http-backend" exists and is executable; 
"DOCUMENT_ROOT" and "SCRIPT_NAME" should be computed with "SCRIPT_FILENAME".

I tried to set "fastcgi_param SCRIPT_NAME   git-http-backend;" and 
"fastcgi_param DOCUMENT_ROOT   /usr/lib/git-core/;" but it did not change 
anything (same error).

I finally tried to use the git version of fcgiwrap ( 
https://github.com/gnosek/fcgiwrap ) and everything worked well (no error, and 
I can clone myrepo).


# nginx config
server {
        listen   80;
        server_name git.example.com;

        access_log /var/log/nginx/git.access.log;
        error_log /var/log/nginx/git.error.log;

        # static repo files for cloning over https
        location ~ 
^.*\.git/objects/([0-9a-f]+/[0-9a-f]+|pack/pack-[0-9a-f]+.(pack|idx))$ {
            root /home/git/repositories;
        }
    
        # requests that need to go to git-http-backend
        location ~ 
^.*\.git/(HEAD|info/refs|objects/info/.*|git-(upload|receive)-pack)$ {
            root /home/git/repositories;
    
            fastcgi_pass 127.0.0.1:8083;
            fastcgi_param SCRIPT_FILENAME   /usr/lib/git-core/git-http-backend;
            fastcgi_param PATH_INFO         $uri;
            fastcgi_param GIT_PROJECT_ROOT  /home/git/repositories;
            fastcgi_param GIT_HTTP_EXPORT_ALL "";
            include fastcgi_params;
        }
}




-- System Information:
Debian Release: 6.0.6
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'stable-updates')
Architecture: i386 (i586)

Kernel: Linux 2.6.32-5-486
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages fcgiwrap depends on:
ii  libc6                         2.11.3-4   Embedded GNU C Library: Shared lib
ii  libfcgi0ldbl                  2.4.0-8    Shared library of FastCGI
ii  spawn-fcgi                    1.6.3-1    A fastcgi process spawner

fcgiwrap recommends no packages.

fcgiwrap suggests no packages.

-- no debconf information

-- 
Félix

Attachment: signature.asc
Description: Digital signature

Reply via email to