]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/script/httpd.conf
document bweb+lighttpd
[bacula/bacula] / gui / bweb / script / httpd.conf
1 ################################################################
2 # lighttpd configuration example for bweb
3 # bacula@localhost:~$ lighttpd -f script/httpd.conf
4 # firefox http://localhost:9180
5 ################################################################
6
7 server.bind = "localhost"
8 server.port = 9180
9
10 ################################################################
11
12 var.basedir = env.BWEBBASE
13
14 server.modules = ("mod_cgi", "mod_alias", "mod_setenv")
15 server.document-root = basedir + "/html/" 
16
17 cgi.assign = ( ".pl" => "/usr/bin/perl" )
18 alias.url = ( "/cgi-bin/bweb/" => basedir + "/cgi/", 
19               "/bweb/fv/" => "/tmp/",
20               "/bweb" => basedir + "/html/",
21                )
22
23 setenv.add-environment = ( 
24   "PERLLIB" => basedir + "/lib/"
25 )
26
27 index-file.names = ( "index.html" )
28
29 mimetype.assign = (
30 ".html" => "text/html",
31 ".gif" => "image/gif",
32 ".jpeg" => "image/jpeg",
33 ".jpg" => "image/jpeg",
34 ".png" => "image/png",
35 ".ico" => "image/x-icon",
36 ".css" => "text/css",
37 ".js" => "application/javascript",
38 )