mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
1d048cb81c
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
20 lines
598 B
Text
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" => "",
|
|
)
|
|
}
|
|
|