Skip to content

Instantly share code, notes, and snippets.

@pulkomandy
Created November 8, 2016 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pulkomandy/64d056ed74d6dd37779c6ef551e09d98 to your computer and use it in GitHub Desktop.
Save pulkomandy/64d056ed74d6dd37779c6ef551e09d98 to your computer and use it in GitHub Desktop.
Lighttpd + cgit + debian
css=/git/media/cgit.css
logo=/git/media/cgit.png
virtual-root=/git/
server.modules += ( "mod_alias", "mod_rewrite" )
$HTTP["url"] =~ "^/git/" {
compress.filetype = ()
alias.url = (
"/git/media" => "/usr/share/cgit",
"/git" => "/usr/lib/cgit",
)
cgi.assign = ( ".cgi" => "" )
index-file.names = ( "cgit.cgi" )
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment