############################### # lighttpd configuration file # ############################### ################### # Modules To Load # ################### server.modules = ( "mod_access", # "mod_alias", "mod_accesslog", "mod_fastcgi", # "mod_evasive", # "mod_userdir", # "mod_auth", "mod_compress", "mod_cgi", # "mod_rewrite", # "mod_proxy", # "mod_status", # "mod_mysql_vhost", # "mod_redirect", # "mod_evhost", # "mod_usertrack", # "mod_rrdtool", # "mod_webdav", # "mod_expire", # "mod_flv_streaming" ) ############################# # Mod_Fastcgi Configuration # ############################# fastcgi.server = ( ".php" => ( ( "bin-path" => "/usr/bin/php-cgi", "socket" => "/tmp/php.socket", "max-procs" => 20, "bin-environment" => ( "PHP_FCGI_CHILDREN" => "2", "PHP_FCGI_MAX_REQUESTS" => "10000" ), ) ), ".phps" => ( ( "bin-path" => "/usr/bin/php-cgi --syntax-highlight", "socket" => "/tmp/phps.socket", "max-procs" => 1, "check-local" => "disable" ) ) ) static-file.exclude-extensions = ( ".fcgi", ".php", ".phps", ".rb", "~", ".inc" ) ##################### # CGI Configuration # ##################### cgi.assign = ( ".pl" => "/usr/bin/perl", ".py" => "/usr/bin/python", ".cgi" => "/usr/bin/perl" ) ############################# # Mod_Evasive Configuration # ############################# evasive.max-conns-per-ip = 1024 ################################ # General Server Configuration # ################################ server.document-root = "/var/www/" server.errorlog = "/var/log/lighttpd/error.log" index-file.names = ( "index.php", "index.html", "index.htm", "default.htm", ".default.php", "index.cgi" ) server.port = 80 server.pid-file = "/var/run/lighttpd.pid" server.max-fds = 2048 dir-listing.encoding = "utf-8" server.dir-listing = "enable" server.username = "www-data" server.groupname = "www-data" ## include_shell "/usr/share/lighttpd/include-conf-enabled.pl" # Include external config files include_shell "/usr/share/lighttpd/create-mime.assign.pl" # Include mime type mapping ############################### # Mod_Accesslog Configuration # ############################### accesslog.filename = "/var/log/lighttpd/access.log" ############################ # Mod_Access Configuration # ############################ url.access-deny = ( "~", ".inc" ) ############################## # Mod_Compress Configuration # ############################## compress.cache-dir = "/var/tmp/lighttpd/cache/compress/" compress.filetype = ("text/plain", "text/html") SERVER["socket"] == ":9090" { server.document.root = "/usr/share/phpldapadmin" }