]> git.sur5r.net Git - bacula/bacula/blob - gui/baculum/examples/deb-template/baculum-web-lighttpd.conf
baculum: New Baculum API and Baculum Web
[bacula/bacula] / gui / baculum / examples / deb-template / baculum-web-lighttpd.conf
1 # Baculum WebGUI tool for Bacula Community
2 #
3 # Web Server Configuration
4 #
5
6 server.port           = 9095
7 server.username       = "www-data"
8 server.groupname      = "www-data"
9 server.document-root  = "%DOCUMENTROOT"
10 server.errorlog       = "%LOGDIR/baculum-web-error.log"
11 accesslog.filename    = "%LOGDIR/baculum-web-access.log"
12 server.pid-file       = "/var/run/baculum-web.pid"
13
14 #
15 # NOTE: To enable encrypted connection please prepare cert files and
16 # then uncomment SSL lines below
17 #
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"
21
22 server.modules = (
23         "mod_auth",
24         "mod_alias",
25         "mod_rewrite",
26         "mod_setenv",
27         "mod_fastcgi",
28         "mod_access",
29         "mod_accesslog"
30 )
31
32 $HTTP["url"] !~ "/web/redirect$" {
33         auth.backend = "htpasswd"
34         auth.backend.htpasswd.userfile = "%DOCUMENTROOT/protected/Web/Config/baculum.users"
35         auth.require = ( "" => (
36                 "method" => "basic",
37                 "realm" => "Baculum Auth",
38                 "require" => "valid-user"
39                 )
40         )
41 }
42
43 index-file.names = ( "index.php" )
44
45 static-file.exclude-extensions = ( ".php" )
46
47 dir-listing.encoding  = "utf-8"
48
49 mimetype.assign = (
50         ".html" => "text/html",
51         ".gif" => "image/gif",
52         ".png" => "image/png",
53         ".ico" => "image/x-icon",
54         ".css" => "text/css",
55         ".js" => "application/javascript"
56 )
57
58 alias.url = (
59         "/" => "%DOCUMENTROOT/"
60 )
61
62 fastcgi.server = (
63         ".php"=> (
64                 (
65                         "bin-path"=>"/usr/bin/php-cgi",
66                         "socket"=>"/tmp/php.sock",
67                         "max-procs" => 1,
68                         "bin-environment" => (
69                                 "PHP_FCGI_CHILDREN" => "4",
70                                 "PHP_FCGI_MAX_REQUESTS" => "10000"
71                         ),
72                         "bin-copy-environment" => (
73                                 "PATH",
74                                 "SHELL",
75                                 "USER"
76                         ),
77                         "broken-scriptfilename" => "enable"
78                 )
79         )
80 )
81
82 url.rewrite-once = (
83         "^/themes/(.+)$" => "/themes/$1",
84         "^/assets/(.+)$" => "/assets/$1",
85         "^/$" => "/index.php?web",
86         "^/(.+)$" => "/index.php/$1"
87 )
88
89 url.access-deny = (
90     "^%DOCUMENTROOT/protected/",
91     "^%DOCUMENTROOT/framework/",
92
93     # Wsat is not used by Baculum. Added here for not storing
94     # framework Apache specific .htaccess files
95     "^%DOCUMENTROOT/framework/Wsat/themes/"
96 )
97
98 ### Enable compressing dynamic content ###
99
100 # disable mod_compress when request a php file
101 $HTTP["url"] !~ "\.php$" {
102         compress.filetype = (
103                 "text/plain",
104                 "text/html",
105                 "text/javascript",
106                 "text/css",
107                 "text/xml"
108         )
109 }
110
111 # enable mod_setenv for framework source files:
112 $HTTP["url"] =~ "^%DOCUMENTROOT/framework/Web/Javascripts/source/" {
113         setenv.add-response-header = ("Content-Encoding" => "gzip")
114 }