server.document-root = "/var/www/" index-file.names = ( "index.php" ) server.max-keep-alive-requests = 2 server.max-keep-alive-idle = 2 server.stat-cache-engine = "simple" server.network-backend = "writev" server.use-noatime = "enable" server.max-stat-threads = 2 server.max-read-threads = 3 server.modules = ( "mod_fastcgi", "mod_rewrite", ) fastcgi.server = ( ".php" => ( "localhost" => ( "socket" => "/tmp/php-fastcgi.socket", "bin-path" => "/usr/bin/php-cgi", "min-procs" => 1, "max-procs" => 2, "max-load-per-proc" => 4, "idle-timeout" => 25, # Fix PATH_INFO for PHP scripts that rely on it (like Wordpress). "broken-scriptfilename" => "enable", "allow-x-send-file" => "enable" # Enables x-sendfile ) ) ) # rewrites for dokuwiki $HTTP["url"] =~ "^" { index-file.names = ("doku.php") } url.rewrite = ( "^/lib/.*$" => "$0", "^/_media/(.*)?\?(.*)$" => "/lib/exe/fetch.php?media=$1&$2", "^/_media/(.*)$" => "/lib/exe/fetch.php?media=$1", "^/_detail/(.*)?\?(.*)$" => "/lib/exe/detail.php?media=$1&$2", "^/_detail/(.*)?$" => "/lib/exe/detail.php?media=$1", "^/_export/([^/]+)/(.*)\?(.*)$" => "/doku.php?do=export_$1&id=$2&$3", "^/_export/([^/]+)/(.*)" => "/doku.php?do=export_$1&id=$2", "^/doku.php.*" => "$0", "^/feed.php.*" => "$0", "^/(.*)\?(.*)" => "/doku.php?id=$1&$2", "^/(.*)" => "/doku.php?id=$1" ) mimetype.assign = ( ".pdf" => "application/pdf", ".sig" => "application/pgp-signature", ".spl" => "application/futuresplash", ".class" => "application/octet-stream", ".ps" => "application/postscript", ".torrent" => "application/x-bittorrent", ".dvi" => "application/x-dvi", ".gz" => "application/x-gzip", ".pac" => "application/x-ns-proxy-autoconfig", ".swf" => "application/x-shockwave-flash", ".tar.gz" => "application/x-tgz", ".tgz" => "application/x-tgz", ".tar" => "application/x-tar", ".zip" => "application/zip", ".mp3" => "audio/mpeg", ".m3u" => "audio/x-mpegurl", ".wma" => "audio/x-ms-wma", ".wax" => "audio/x-ms-wax", ".ogg" => "application/ogg", ".wav" => "audio/x-wav", ".gif" => "image/gif", ".jpg" => "image/jpeg", ".jpeg" => "image/jpeg", ".png" => "image/png", ".xbm" => "image/x-xbitmap", ".xpm" => "image/x-xpixmap", ".xwd" => "image/x-xwindowdump", ".css" => "text/css", ".html" => "text/html", ".htm" => "text/html", ".js" => "text/javascript", ".asc" => "text/plain", ".c" => "text/plain", ".cpp" => "text/plain", ".log" => "text/plain", ".conf" => "text/plain", ".text" => "text/plain", ".txt" => "text/plain", ".dtd" => "text/xml", ".xml" => "text/xml", ".mpeg" => "video/mpeg", ".mpg" => "video/mpeg", ".mov" => "video/quicktime", ".qt" => "video/quicktime", ".avi" => "video/x-msvideo", ".asf" => "video/x-ms-asf", ".asx" => "video/x-ms-asf", ".wmv" => "video/x-ms-wmv", ".bz2" => "application/x-bzip", ".tbz" => "application/x-bzip-compressed-tar", ".tar.bz2" => "application/x-bzip-compressed-tar" )