]> git.sur5r.net Git - bacula/bacula/commitdiff
baculum: Update sample of Lighttpd config file
authorMarcin Haba <marcin.haba@bacula.pl>
Fri, 13 Mar 2015 21:08:47 +0000 (22:08 +0100)
committerMarcin Haba <marcin.haba@bacula.pl>
Fri, 13 Mar 2015 21:08:47 +0000 (22:08 +0100)
gui/baculum/examples/deb/baculum.lighttpd.conf

index cf90f16b0fe328c625031cc1ec9047812e8cd4a7..b21d49dada49917eca71f9d5362f5977990f6461 100644 (file)
@@ -6,20 +6,21 @@
 server.port           = 9095
 server.username       = "www-data"
 server.groupname      = "www-data"
-server.document-root  = "/var/www/baculum"
-server.errorlog       = "/var/www/baculum/protected/logs/baculum-error.log"
-accesslog.filename    = "/var/www/baculum/protected/logs/baculum-access.log"
+server.document-root  = "/usr/share/baculum/htdocs"
+server.errorlog       = "/usr/share/baculum/htdocs/protected/logs/baculum-error.log"
+accesslog.filename    = "/usr/share/baculum/htdocs/protected/logs/baculum-access.log"
 server.pid-file       = "/var/run/baculum.pid"
 
 server.modules = (
         "mod_auth",
+        "mod_alias",
         "mod_rewrite",
         "mod_fastcgi",
         "mod_accesslog"
 )
 
 auth.backend          = "plain" 
-auth.backend.plain.userfile = "/var/www/baculum/protected/Data/baculum.users"
+auth.backend.plain.userfile = "/usr/share/baculum/htdocs/protected/Data/baculum.users"
 auth.require = ( "/" => (
         "method" => "basic",
         "realm" => "Baculum Auth",
@@ -41,9 +42,22 @@ mimetype.assign = (
    ".js" => "application/javascript",
 )
 
+alias.url = (
+   "/" => "/usr/share/baculum/htdocs/"
+)
+
 fastcgi.server = (".php"=>((
   "bin-path"=>"/usr/bin/php5-cgi",
-  "socket"=>"/tmp/php.socket"
+  "socket"=>"/tmp/php5.sock",
+  "max-procs" => 1,
+  "bin-environment" => (
+    "PHP_FCGI_CHILDREN" => "4",
+    "PHP_FCGI_MAX_REQUESTS" => "10000"
+  ),
+  "bin-copy-environment" => (
+   "PATH", "SHELL", "USER"
+  ),
+  "broken-scriptfilename" => "enable"
 )))
 
 url.rewrite-once = (