################################################################ # lighttpd configuration example for bweb # bacula@localhost:~$ lighttpd -f script/httpd.conf # firefox http://localhost:9180 ################################################################ server.bind = "bacula-server" server.port = 80 server.username = "bacula" server.groupname = "bacula" server.errorlog = "/var/log/lighttpd/error.log" ################################################################ var.basedir = env.BWEBBASE server.modules = ("mod_cgi", "mod_alias", "mod_setenv", "mod_accesslog", "mod_auth") accesslog.filename = "/var/log/lighttpd/access.log" auth.backend = "htpasswd" auth.backend.htpasswd.userfile = "/etc/lighttpd/htpasswd" auth.require = ( "/" => ( "method" => "basic", "realm" => "Bacula Admin", "require" => "user=bacula" ) ) server.document-root = basedir + "/html/" cgi.assign = ( ".pl" => "/usr/bin/perl" ) alias.url = ( "/cgi-bin/bweb/" => basedir + "/cgi/", "/bweb/fv/" => "/tmp/", "/bweb" => basedir + "/html/", ) setenv.add-environment = ( "PERLLIB" => basedir + "/lib/", "BWEBCONF" => basedir + "/bweb.conf" ) index-file.names = ( "index.html" ) mimetype.assign = ( ".html" => "text/html", ".gif" => "image/gif", ".jpeg" => "image/jpeg", ".jpg" => "image/jpeg", ".png" => "image/png", ".ico" => "image/x-icon", ".css" => "text/css", ".js" => "application/javascript", )