server.document-root = "/mnt/HD/HD_a2/HTTP/www/" server.port = 8080 #server.username = "root" #server.group = "root" #server.max-worker = 1 server.max-fds = 8192 server.max-connections = 4096 server.max-keep-alive-idle = 4 server.modules = ( "mod_rewrite", "mod_alias", "mod_access", "mod_setenv", "mod_cgi", "mod_fastcgi", "mod_status", "mod_accesslog", "mod_flv_streaming", "mod_secdownload", "mod_webdav", "mod_compress", "mod_auth", #"mod_dirlisting" ) setenv.add-response-header = ( "Content-Language" => "en" , "P3P" => "CP='CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR'") #dir-listing.activate = "enable" #server.errorlog-use-syslog = "enable" include "/etc/lighttpd/mimetypes" secdownload.secret = "ZuaHCczwv" secdownload.document-root = "/mnt/" secdownload.uri-prefix = "/sdownload/" secdownload.timeout = 7200 $SERVER["socket"] == ":8080" { } $SERVER["socket"] == "[::]:8080" { server.use-ipv6 = "enable" } cgi.assign = ( ".cgi" => "", #".php" => "/usr/bin/php-cgi" ) flv-streaming.extensions = ( ".flv" ) alias.url += ( "/cgi-bin/" => "/var/www/cgi-bin/" ) alias.url += ( "/xml/" => "/var/www/xml/" ) url.rewrite-once = ("^/xml/(.*).xml" => "/cgi-bin/get_xml.cgi?$1") server.max-request-size = 4194303 fastcgi.server = ( ".php" => ( "localhost" => ("host" => "127.0.0.1","port" => "5555" , "bin-path" => "/usr/bin/php-cgi" , "bin-environment" => ( "PHP_FCGI_CHILDREN" => "2" ,"PHP_FCGI_MAX_REQUESTS" => "1000" ) , "max-procs" => "1" ) ) ) server.network-backend = "writev" static-file.exclude-extensions = ( ".cgi" ) server.upload-dirs = ("/var/tmp/") index-file.names = ("index.html","index.php")
|