slackbuilds_ponce/development/cgit/config/cgit-lighttpd.conf
Robby Workman 1d048cb81c development/cgit: Fixes for httpd-2.4.x and allow custom DOCROOT
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
2013-11-25 14:08:19 -06:00

20 lines
598 B
Text

# sample virtual host configuration for lighttpd.
# edit, move to /etc/lighttpd/ and include it in /etc/lighttpd/lighttpd.conf
# with a line
#
# include "cgit-lighttpd.conf"
$HTTP["host"] == "cgit.my.domain" {
alias.url = (
"/static/" => "@DOCROOT@/cgi-bin/",
"/cgit.cgi" => "@DOCROOT@/cgi-bin/cgit.cgi",
)
url.rewrite-once = (
"^/static/.*$" => "$0",
"^/([^?/]+/[^?]*)?(?:\?(.*))?$" => "/cgit.cgi?url=$1&$2",
)
cgi.assign = (
"@DOCROOT@/cgi-bin/cgit.cgi" => "",
)
}