From b1ff01e55a1e99698f8e028c2854f960a9ed4e7f Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Fri, 13 Mar 2015 22:08:47 +0100 Subject: [PATCH] baculum: Update sample of Lighttpd config file --- .../examples/deb/baculum.lighttpd.conf | 24 +++++++++++++++---- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/gui/baculum/examples/deb/baculum.lighttpd.conf b/gui/baculum/examples/deb/baculum.lighttpd.conf index cf90f16b0f..b21d49dada 100644 --- a/gui/baculum/examples/deb/baculum.lighttpd.conf +++ b/gui/baculum/examples/deb/baculum.lighttpd.conf @@ -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 = ( -- 2.39.5