]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/script/httpd.conf
bweb: Add sqlite support
[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", "mod_accesslog")
15 server.document-root = basedir + "/html/" 
16 server.errorlog = basedir + "/error.log"
17 accesslog.filename = basedir + "/access.log"
18 cgi.assign = ( ".pl" => "/usr/bin/perl" )
19 alias.url = ( "/cgi-bin/bweb/" => basedir + "/cgi/", 
20               "/bweb/fv/" => "/tmp/",
21               "/bweb" => basedir + "/html/",
22                )
23
24 setenv.add-environment = ( 
25   "PERLLIB" => basedir + "/lib/",
26   "BWEBCONF" => basedir + "/bweb.conf"
27 )
28
29 index-file.names = ( "index.html" )
30
31 mimetype.assign = (
32 ".html" => "text/html",
33 ".gif" => "image/gif",
34 ".jpeg" => "image/jpeg",
35 ".jpg" => "image/jpeg",
36 ".png" => "image/png",
37 ".ico" => "image/x-icon",
38 ".css" => "text/css",
39 ".js" => "application/javascript",
40 )