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/"
27 index-file.names = ( "index.html" )
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",
37 ".js" => "application/javascript",