aboutsummaryrefslogtreecommitdiff
path: root/lighttpd.conf
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lighttpd.conf24
1 files changed, 24 insertions, 0 deletions
diff --git a/lighttpd.conf b/lighttpd.conf
new file mode 100644
index 0000000..43d6c00
--- /dev/null
+++ b/lighttpd.conf
@@ -0,0 +1,24 @@
1# Minimal lighttpd configuration for local testing
2
3server.document-root = "/usr/share/webapps/cgit"
4server.port = 8080
5server.bind = "localhost"
6server.username = "sebastiano"
7server.groupname = "sebastiano"
8
9server.modules = ( "mod_cgi", "mod_rewrite", "mod_setenv" )
10
11mimetype.assign = (
12 ".css" => "text/css",
13 ".png" => "image/png",
14 ".ico" => "image/x-icon",
15)
16
17cgi.assign = ( "cgit.cgi" => "" )
18setenv.add-environment = ( "CGIT_CONFIG" => "/etc/cgitrc" )
19
20url.rewrite-once = (
21 "^/custom/(.*)$" => "/custom/$1",
22 "^/(cgit\.css|cgit\.js)(\?.*)?$" => "/$1",
23 "^/([^?/]+/[^?]*)?(?:\?(.*))?$" => "/cgit.cgi?url=$1&$2",
24)

Generated with cgit - Back to sebastiano.tronto.net