1 ################################################################
2 # lighttpd configuration example for bweb
3 # bacula@localhost:~$ lighttpd -f script/httpd.conf
4 # firefox http://localhost:9180
5 ################################################################
7 server.bind = "localhost"
10 ################################################################
12 var.basedir = env.BWEBBASE
14 server.modules = ("mod_cgi", "mod_alias", "mod_setenv")
15 server.document-root = basedir + "/html/"
17 cgi.assign = ( ".pl" => "/usr/bin/perl" )
18 alias.url = ( "/cgi-bin/bweb/" => basedir + "/cgi/",
19 "/bweb/fv/" => "/tmp/",
20 "/bweb" => basedir + "/html/",
23 setenv.add-environment = (
24 "PERLLIB" => basedir + "/lib/",
25 "BWEBCONF" => basedir + "/bweb.conf"
28 index-file.names = ( "index.html" )
31 ".html" => "text/html",
32 ".gif" => "image/gif",
33 ".jpeg" => "image/jpeg",
34 ".jpg" => "image/jpeg",
35 ".png" => "image/png",
36 ".ico" => "image/x-icon",
38 ".js" => "application/javascript",