commented out example for tunnel usage
[bak-git.git] / gitweb / httpd.conf
1 # start with /usr/sbin/lighttpd -f gitweb/httpd.conf
2
3 server.document-root = "/home/dpavlin/klin/backup/.git/gitweb"
4 server.port = 6999
5 server.modules = ( "mod_setenv", "mod_cgi", "mod_accesslog", "mod_access", "mod_compress", "mod_auth" )
6 server.indexfiles = ( "gitweb.cgi" )
7 server.pid-file = "/home/dpavlin/klin/backup/.git/pid"
8 server.errorlog = "/home/dpavlin/klin/backup/.git/gitweb/error.log"
9
10 ssl.engine = "enable" 
11 ssl.pemfile = "/home/dpavlin/klin/backup/.git/gitweb/server.pem" 
12 #ssl.ca-file = "/path/to/CA.crt"
13
14 auth.backend = "htdigest"
15 auth.backend.htdigest.userfile = "/home/dpavlin/klin/backup/.git/gitweb/passwd" 
16 # htdigest ../backup/.git/gitweb/passwd bak-git new-login
17 auth.require = ( "/" =>
18                  (
19                  # method must be either basic or digest
20                    "method"  => "digest",
21                    "realm"   => "bak-git",
22                    "require" => "valid-user",
23                  ),
24 )
25
26 # to enable, add "mod_access", "mod_accesslog" to server.modules
27 # variable above and uncomment this
28 accesslog.filename = "/home/dpavlin/klin/backup/.git/gitweb/access.log"
29
30 setenv.add-environment = ( "PATH" => "/usr/local/bin:/usr/bin:/bin" )
31
32 cgi.assign = ( ".cgi" => "" )
33
34 # mimetype mapping
35 mimetype.assign             = (
36   ".pdf"          =>      "application/pdf",
37   ".sig"          =>      "application/pgp-signature",
38   ".spl"          =>      "application/futuresplash",
39   ".class"        =>      "application/octet-stream",
40   ".ps"           =>      "application/postscript",
41   ".torrent"      =>      "application/x-bittorrent",
42   ".dvi"          =>      "application/x-dvi",
43   ".gz"           =>      "application/x-gzip",
44   ".pac"          =>      "application/x-ns-proxy-autoconfig",
45   ".swf"          =>      "application/x-shockwave-flash",
46   ".tar.gz"       =>      "application/x-tgz",
47   ".tgz"          =>      "application/x-tgz",
48   ".tar"          =>      "application/x-tar",
49   ".zip"          =>      "application/zip",
50   ".mp3"          =>      "audio/mpeg",
51   ".m3u"          =>      "audio/x-mpegurl",
52   ".wma"          =>      "audio/x-ms-wma",
53   ".wax"          =>      "audio/x-ms-wax",
54   ".ogg"          =>      "application/ogg",
55   ".wav"          =>      "audio/x-wav",
56   ".gif"          =>      "image/gif",
57   ".jpg"          =>      "image/jpeg",
58   ".jpeg"         =>      "image/jpeg",
59   ".png"          =>      "image/png",
60   ".xbm"          =>      "image/x-xbitmap",
61   ".xpm"          =>      "image/x-xpixmap",
62   ".xwd"          =>      "image/x-xwindowdump",
63   ".css"          =>      "text/css",
64   ".html"         =>      "text/html",
65   ".htm"          =>      "text/html",
66   ".js"           =>      "text/javascript",
67   ".asc"          =>      "text/plain",
68   ".c"            =>      "text/plain",
69   ".cpp"          =>      "text/plain",
70   ".log"          =>      "text/plain",
71   ".conf"         =>      "text/plain",
72   ".text"         =>      "text/plain",
73   ".txt"          =>      "text/plain",
74   ".dtd"          =>      "text/xml",
75   ".xml"          =>      "text/xml",
76   ".mpeg"         =>      "video/mpeg",
77   ".mpg"          =>      "video/mpeg",
78   ".mov"          =>      "video/quicktime",
79   ".qt"           =>      "video/quicktime",
80   ".avi"          =>      "video/x-msvideo",
81   ".asf"          =>      "video/x-ms-asf",
82   ".asx"          =>      "video/x-ms-asf",
83   ".wmv"          =>      "video/x-ms-wmv",
84   ".bz2"          =>      "application/x-bzip",
85   ".tbz"          =>      "application/x-bzip-compressed-tar",
86   ".tar.bz2"      =>      "application/x-bzip-compressed-tar",
87   ""              =>      "text/plain"
88  )
89 #server.bind = "127.0.0.1"
90