You are not logged in.

#1 2010-02-06 07:13:18

Stythys
Member
From: SF Bay Area
Registered: 2008-05-18
Posts: 878
Website

cgit + lighttpd

anyone have these two working? tried following the wiki, but the config just keeps outputting parsing errors: http://redmine.lighttpd.net/projects/li … Howto_cgit


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you."
-- Bregol

Offline

#2 2010-02-06 08:18:09

Peasantoid
Member
Registered: 2009-04-26
Posts: 928
Website

Re: cgit + lighttpd

The page was last edited in Nov 09; I imagine the config syntax has changed since then.

This doesn't really answer your question, but gitweb works well with lighttpd.

Offline

#3 2010-02-06 13:24:58

snakebite
Member
From: Norway
Registered: 2009-05-13
Posts: 42

Re: cgit + lighttpd

I put cgit.png, cgit.css and the cgit executable (I named it cgit.cgi) in the htdocs dir and use the following with lighttpd 1.4.25 and cgit 0.8.3.1:

$HTTP["host"] == "cgit.example.com" {
    url.rewrite-once = (
        "^/(.*)\.(png|css)" => "$0",
        "^/(.*)" => "/cgit.cgi/$1"
    )
    cgi.assign = (".cgi" => "")
}

This doesn't use fastcgi though.

Offline

#4 2010-02-06 17:31:43

anrxc
Member
From: Croatia
Registered: 2008-03-22
Posts: 834
Website

Re: cgit + lighttpd

Stythys wrote:

anyone have these two working?

Here are my own Notes on lighttpd and cgit. In last cgit the syntax for defining groups has changed, and what I said about png files is no longer true since you can now define mimetypes.


You need to install an RTFM interface.

Offline

#5 2010-02-06 18:05:40

Stythys
Member
From: SF Bay Area
Registered: 2008-05-18
Posts: 878
Website

Re: cgit + lighttpd

thanks guys! big_smile


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you."
-- Bregol

Offline

#6 2010-02-06 18:26:17

Stythys
Member
From: SF Bay Area
Registered: 2008-05-18
Posts: 878
Website

Re: cgit + lighttpd

ok so everything's working except that I keep getting a '/srv/git/uzume is not a git repo' error. any ideas?


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you."
-- Bregol

Offline

#7 2010-02-06 20:04:44

snakebite
Member
From: Norway
Registered: 2009-05-13
Posts: 42

Re: cgit + lighttpd

If the directory is not a "bare" repo, you need to point to its .git directory.

Edit: Spelling

Last edited by snakebite (2010-02-06 20:21:34)

Offline

#8 2010-02-06 20:16:58

Stythys
Member
From: SF Bay Area
Registered: 2008-05-18
Posts: 878
Website

Re: cgit + lighttpd

thanks big_smile


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you."
-- Bregol

Offline

Board footer

Powered by FluxBB