]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/script/httpd.conf
bweb: update location title
[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   "BWEBCONF" => basedir + "/bweb.conf"
26 )
27
28 index-file.names = ( "index.html" )
29
30 mimetype.assign = (
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",
37 ".css" => "text/css",
38 ".js" => "application/javascript",
39 )