1server.tag = "LightTPD/1.4.19 (Win32)" 2server.modules = ( "mod_accesslog", 3 "mod_alias", 4 "mod_cgi", 5 "mod_rewrite" ) 6 7# default document root required 8server.document-root = "." 9 10# files to check for if .../ is requested 11index-file.names = ( "index.php", "index.pl", "index.cgi", 12 "index.html", "index.htm", "default.htm" ) 13# mimetype mapping 14mimetype.assign = ( 15 ".gif" => "image/gif", 16 ".jpg" => "image/jpeg", 17 ".jpeg" => "image/jpeg", 18 ".png" => "image/png", 19 ".svg" => "image/svg+xml", 20 ".css" => "text/css", 21 ".html" => "text/html", 22 ".htm" => "text/html", 23 ".xhtml" => "application/xhtml+xml", 24 ".xhtmlmp" => "application/vnd.wap.xhtml+xml", 25 ".js" => "application/x-javascript", 26 ".log" => "text/plain", 27 ".conf" => "text/plain", 28 ".text" => "text/plain", 29 ".txt" => "text/plain", 30 ".dtd" => "text/xml", 31 ".xml" => "text/xml", 32 ".manifest" => "text/cache-manifest", 33 ) 34 35# Use the "Content-Type" extended attribute to obtain mime type if possible 36mimetype.use-xattr = "enable" 37 38## 39# which extensions should not be handle via static-file transfer 40# 41# .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi 42static-file.exclude-extensions = ( ".php", ".pl", ".cgi" ) 43 44server.bind = "localhost" 45server.port = 8001 46 47## virtual directory listings 48dir-listing.activate = "enable" 49#dir-listing.encoding = "iso-8859-2" 50#dir-listing.external-css = "style/oldstyle.css" 51 52## enable debugging 53#debug.log-request-header = "enable" 54#debug.log-response-header = "enable" 55#debug.log-request-handling = "enable" 56#debug.log-file-not-found = "enable" 57 58#### SSL engine 59#ssl.engine = "enable" 60#ssl.pemfile = "server.pem" 61 62# Rewrite rule for utf-8 path test (LayoutTests/http/tests/uri/utf8-path.html) 63# See the apache rewrite rule at LayoutTests/http/tests/uri/intercept/.htaccess 64# Rewrite rule for LayoutTests/http/tests/appcache/cyrillic-uri.html. 65# See the apache rewrite rule at 66# LayoutTests/http/tests/appcache/resources/intercept/.htaccess 67url.rewrite-once = ( 68 "^/uri/intercept/(.*)" => "/uri/resources/print-uri.php", 69 "^/appcache/resources/intercept/(.*)" => "/appcache/resources/print-uri.php" 70) 71 72# LayoutTests/http/tests/xmlhttprequest/response-encoding.html uses an htaccess 73# to override charset for reply2.txt, reply2.xml, and reply4.txt. 74$HTTP["url"] =~ "^/xmlhttprequest/resources/reply2.(txt|xml)" { 75 mimetype.assign = ( 76 ".txt" => "text/plain; charset=windows-1251", 77 ".xml" => "text/xml; charset=windows-1251" 78 ) 79} 80$HTTP["url"] =~ "^/xmlhttprequest/resources/reply4.txt" { 81 mimetype.assign = ( ".txt" => "text/plain; charset=koi8-r" ) 82} 83 84# LayoutTests/http/tests/appcache/wrong-content-type.html uses an htaccess 85# to override mime type for wrong-content-type.manifest. 86$HTTP["url"] =~ "^/appcache/resources/wrong-content-type.manifest" { 87 mimetype.assign = ( ".manifest" => "text/plain" ) 88} 89 90# Autogenerated test-specific config follows. 91