diff options
Diffstat (limited to 'lighttpd.conf')
| -rw-r--r-- | lighttpd.conf | 24 |
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 | |||
| 3 | server.document-root = "/usr/share/webapps/cgit" | ||
| 4 | server.port = 8080 | ||
| 5 | server.bind = "localhost" | ||
| 6 | server.username = "sebastiano" | ||
| 7 | server.groupname = "sebastiano" | ||
| 8 | |||
| 9 | server.modules = ( "mod_cgi", "mod_rewrite", "mod_setenv" ) | ||
| 10 | |||
| 11 | mimetype.assign = ( | ||
| 12 | ".css" => "text/css", | ||
| 13 | ".png" => "image/png", | ||
| 14 | ".ico" => "image/x-icon", | ||
| 15 | ) | ||
| 16 | |||
| 17 | cgi.assign = ( "cgit.cgi" => "" ) | ||
| 18 | setenv.add-environment = ( "CGIT_CONFIG" => "/etc/cgitrc" ) | ||
| 19 | |||
| 20 | url.rewrite-once = ( | ||
| 21 | "^/custom/(.*)$" => "/custom/$1", | ||
| 22 | "^/(cgit\.css|cgit\.js)(\?.*)?$" => "/$1", | ||
| 23 | "^/([^?/]+/[^?]*)?(?:\?(.*))?$" => "/cgit.cgi?url=$1&$2", | ||
| 24 | ) | ||
