From 66b54db812b01f5b944b0e5694a1473bdbcbaf32 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 31 Aug 2026 17:10:07 +0200 Subject: Initial commit --- lighttpd.conf | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 lighttpd.conf (limited to 'lighttpd.conf') diff --git a/lighttpd.conf b/lighttpd.conf new file mode 100644 index 0000000..43d6c00 --- /dev/null +++ b/lighttpd.conf @@ -0,0 +1,24 @@ +# Minimal lighttpd configuration for local testing + +server.document-root = "/usr/share/webapps/cgit" +server.port = 8080 +server.bind = "localhost" +server.username = "sebastiano" +server.groupname = "sebastiano" + +server.modules = ( "mod_cgi", "mod_rewrite", "mod_setenv" ) + +mimetype.assign = ( + ".css" => "text/css", + ".png" => "image/png", + ".ico" => "image/x-icon", +) + +cgi.assign = ( "cgit.cgi" => "" ) +setenv.add-environment = ( "CGIT_CONFIG" => "/etc/cgitrc" ) + +url.rewrite-once = ( + "^/custom/(.*)$" => "/custom/$1", + "^/(cgit\.css|cgit\.js)(\?.*)?$" => "/$1", + "^/([^?/]+/[^?]*)?(?:\?(.*))?$" => "/cgit.cgi?url=$1&$2", +) -- cgit v1.3