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 ".js" => "application/x-javascript", 25 ".log" => "text/plain", 26 ".conf" => "text/plain", 27 ".text" => "text/plain", 28 ".txt" => "text/plain", 29 ".dtd" => "text/xml", 30 ".xml" => "text/xml", 31 ".manifest" => "text/cache-manifest", 32 ) 33 34# Use the "Content-Type" extended attribute to obtain mime type if possible 35mimetype.use-xattr = "enable" 36 37## 38# which extensions should not be handle via static-file transfer 39# 40# .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi 41static-file.exclude-extensions = ( ".php", ".pl", ".cgi" ) 42 43server.bind = "localhost" 44server.port = 8001 45 46## virtual directory listings 47dir-listing.activate = "enable" 48#dir-listing.encoding = "iso-8859-2" 49#dir-listing.external-css = "style/oldstyle.css" 50 51## enable debugging 52#debug.log-request-header = "enable" 53#debug.log-response-header = "enable" 54#debug.log-request-handling = "enable" 55#debug.log-file-not-found = "enable" 56 57#### SSL engine 58#ssl.engine = "enable" 59#ssl.pemfile = "server.pem" 60 61# Rewrite rule for utf-8 path test (LayoutTests/http/tests/uri/utf8-path.html) 62# See the apache rewrite rule at LayoutTests/http/tests/uri/intercept/.htaccess 63# Rewrite rule for LayoutTests/http/tests/appcache/cyrillic-uri.html. 64# See the apache rewrite rule at 65# LayoutTests/http/tests/appcache/resources/intercept/.htaccess 66url.rewrite-once = ( 67 "^/uri/intercept/(.*)" => "/uri/resources/print-uri.php", 68 "^/appcache/resources/intercept/(.*)" => "/appcache/resources/print-uri.php" 69) 70 71# LayoutTests/http/tests/xmlhttprequest/response-encoding.html uses an htaccess 72# to override charset for reply2.txt, reply2.xml, and reply4.txt. 73$HTTP["url"] =~ "^/xmlhttprequest/resources/reply2.(txt|xml)" { 74 mimetype.assign = ( 75 ".txt" => "text/plain; charset=windows-1251", 76 ".xml" => "text/xml; charset=windows-1251" 77 ) 78} 79$HTTP["url"] =~ "^/xmlhttprequest/resources/reply4.txt" { 80 mimetype.assign = ( ".txt" => "text/plain; charset=koi8-r" ) 81} 82 83# LayoutTests/http/tests/appcache/wrong-content-type.html uses an htaccess 84# to override mime type for wrong-content-type.manifest. 85$HTTP["url"] =~ "^/appcache/resources/wrong-content-type.manifest" { 86 mimetype.assign = ( ".manifest" => "text/plain" ) 87} 88 89# Autogenerated test-specific config follows. 90