From be0fb2d3f2fe2f1401aa52c144a3e27a177d5ae0 Mon Sep 17 00:00:00 2001
From: Benoit Mortier <benoit.mortier@opensides.be>
Date: Thu, 11 Sep 2014 12:44:01 +0200
Subject: [PATCH] Fixes: #3335 adding lighttpd support in the doc

---
 .../lighttpd/fusiondirectory-lighttpd.conf    | 29 +++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 contrib/lighttpd/fusiondirectory-lighttpd.conf

diff --git a/contrib/lighttpd/fusiondirectory-lighttpd.conf b/contrib/lighttpd/fusiondirectory-lighttpd.conf
new file mode 100644
index 000000000..8c4b318ed
--- /dev/null
+++ b/contrib/lighttpd/fusiondirectory-lighttpd.conf
@@ -0,0 +1,29 @@
+# lighttpd configuration for GOsa
+
+# Set alias to http://<host>/gosa/
+alias.url += (
+	"/gosa/" => "/usr/share/gosa/html/"
+)
+
+# Enable FastCGI and set it to handle .php URLs
+# php-cgi is run with the GOsa-required options
+server.modules += ( "mod_fastcgi" )
+
+$HTTP["url"] =~ "^/gosa/" {
+	fastcgi.server = ( ".php" =>
+		((
+			"bin-path" => "/usr/bin/php-cgi -d expose_php=Off -d magic_quotes_gpc=Off",
+			"socket" => "/tmp/php.socket",
+			"max-procs" => 2,
+			"idle-timeout" => 20,
+			"bin-environment" => ( 
+				"PHP_FCGI_CHILDREN" => "4",
+				"PHP_FCGI_MAX_REQUESTS" => "10000"
+			),
+			"bin-copy-environment" => (
+				"PATH", "SHELL", "USER"
+			),
+			"broken-scriptfilename" => "enable"
+		))
+	)
+}
-- 
GitLab