You are not logged in.

#1 2012-05-29 03:15:25

jmandawg
Member
Registered: 2011-10-19
Posts: 60

[SOLVED] Git smart-http with lighttpd - Error mod_cgi.c.1051: aborted

I'm trying to setup git over smart-http like in this example:

http://txlab.wordpress.com/2011/08/20/g … te-access/

But i keep getting this error:

[jman@I52500K:/a/src/MyApp/ 493]$git push --set-upstream http://domain.com/git/MyApp/ master error: Cannot access URL http://domain.com/git/myApp/, return code 22

This is my lighttpd.conf

$HTTP["host"] =~ "(^|\.)domain\.com$" {
 server.document-root = "/srv/http/domain.com"
 server.errorlog = "/var/log/lighttpd/domain.error.log"
 accesslog.filename = "/var/log/lighttpd/domain.access.log"
 server.error-handler-404 = "/e404.php"

 alias.url                  += ( "/git" => "/usr/lib/git-core/git-http-backend")
 url.rewrite-once            = ( "^/git$" => "/git/" )
 $HTTP["url"] =~ "^/git" {
        cgi.assign = ( "" => "" )
        setenv.add-environment = (
          "GIT_HTTP_EXPORT_ALL" => "",
          "GIT_PROJECT_ROOT" => "/srv/http/domain.com/git/MyApp/"
          )
 }
}

This is what's in the lighttpd-angel.log log:

mod_cgi.c.1051: aborted

Any ideas?

Last edited by jmandawg (2012-06-05 03:31:52)

Offline

#2 2012-06-05 03:31:35

jmandawg
Member
Registered: 2011-10-19
Posts: 60

Re: [SOLVED] Git smart-http with lighttpd - Error mod_cgi.c.1051: aborted

I got it to work, i forgot to enable mod_alias or mod_redirect or mod_rewrite, i don't remember which one was missing. it's too late.

Offline

Board footer

Powered by FluxBB