mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-29 13:00:32 +01:00
21 lines
595 B
Text
21 lines
595 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/" => "/var/www/cgi-bin/",
|
||
|
"/cgit.cgi" => "/var/www/cgi-bin/cgit.cgi",
|
||
|
)
|
||
|
url.rewrite-once = (
|
||
|
"^/static/.*$" => "$0",
|
||
|
"^/([^?/]+/[^?]*)?(?:\?(.*))?$" => "/cgit.cgi?url=$1&$2",
|
||
|
)
|
||
|
cgi.assign = (
|
||
|
"/var/www/cgi-bin/cgit.cgi" => "",
|
||
|
)
|
||
|
}
|
||
|
|