1 # Baculum WebGUI tool for Bacula Community
3 # Web Server Configuration
7 server.username = "www-data"
8 server.groupname = "www-data"
9 server.document-root = "/usr/share/baculum/htdocs"
10 server.errorlog = "/var/log/lighttpd/baculum-web-error.log"
11 accesslog.filename = "/var/log/lighttpd/baculum-web-access.log"
12 server.pid-file = "/var/run/baculum-web.pid"
15 # NOTE: To enable encrypted connection please prepare cert files and
16 # then uncomment SSL lines below
18 #ssl.engine = "enable"
19 #ssl.pemfile = "/etc/baculum/Config-web-lighttpd/baculum.pem"
20 #ssl.ca-file = "/etc/baculum/Config-web-lighttpd/baculum.crt"
32 $HTTP["url"] !~ "/web/redirect$" {
33 auth.backend = "htpasswd"
34 auth.backend.htpasswd.userfile = "/usr/share/baculum/htdocs/protected/Web/Config/baculum.users"
35 auth.require = ( "" => (
37 "realm" => "Baculum Auth",
38 "require" => "valid-user"
43 index-file.names = ( "index.php" )
45 static-file.exclude-extensions = ( ".php" )
47 dir-listing.encoding = "utf-8"
50 ".html" => "text/html",
51 ".gif" => "image/gif",
52 ".png" => "image/png",
53 ".ico" => "image/x-icon",
55 ".js" => "application/javascript"
59 "/" => "/usr/share/baculum/htdocs/"
65 "bin-path"=>"/usr/bin/php-cgi",
66 "socket"=>"/tmp/php.sock",
68 "bin-environment" => (
69 "PHP_FCGI_CHILDREN" => "4",
70 "PHP_FCGI_MAX_REQUESTS" => "10000"
72 "bin-copy-environment" => (
77 "broken-scriptfilename" => "enable"
83 "^/themes/(.+)$" => "/themes/$1",
84 "^/assets/(.+)$" => "/assets/$1",
85 "^/$" => "/index.php?web",
86 "^/(.+)$" => "/index.php/$1"
90 "^/usr/share/baculum/htdocs/protected/",
91 "^/usr/share/baculum/htdocs/framework/",
93 # Wsat is not used by Baculum. Added here for not storing
94 # framework Apache specific .htaccess files
95 "^/usr/share/baculum/htdocs/framework/Wsat/themes/"
98 ### Enable compressing dynamic content ###
100 # disable mod_compress when request a php file
101 $HTTP["url"] !~ "\.php$" {
102 compress.filetype = (
111 # enable mod_setenv for framework source files:
112 $HTTP["url"] =~ "^/usr/share/baculum/htdocs/framework/Web/Javascripts/source/" {
113 setenv.add-response-header = ("Content-Encoding" => "gzip")