diff --git a/contrib/lighttpd/fusiondirectory-lighttpd.conf b/contrib/lighttpd/fusiondirectory-lighttpd.conf new file mode 100644 index 0000000000000000000000000000000000000000..8c4b318ede7c7d9741679553a4880740611e0835 --- /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" + )) + ) +}