diff options
Diffstat (limited to 'development/cgit/config/cgit-lighttpd.conf')
-rw-r--r-- | development/cgit/config/cgit-lighttpd.conf | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/development/cgit/config/cgit-lighttpd.conf b/development/cgit/config/cgit-lighttpd.conf new file mode 100644 index 0000000000..fc49e5763f --- /dev/null +++ b/development/cgit/config/cgit-lighttpd.conf @@ -0,0 +1,20 @@ +# 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" => "", + ) +} + |