summaryrefslogtreecommitdiffstats
path: root/Tools/Scripts/webkitpy/layout_tests/port/lighttpd.conf
blob: 26ca22f2d7efda1131ef080668ee46413b77fd93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
server.tag                  = "LightTPD/1.4.19 (Win32)"
server.modules              = ( "mod_accesslog",
                                "mod_alias",
                                "mod_cgi",
                                "mod_rewrite" )

# default document root required
server.document-root = "."

# files to check for if .../ is requested
index-file.names            = ( "index.php", "index.pl", "index.cgi",
                                "index.html", "index.htm", "default.htm" )
# mimetype mapping
mimetype.assign             = (
  ".gif"          =>      "image/gif",
  ".jpg"          =>      "image/jpeg",
  ".jpeg"         =>      "image/jpeg",
  ".png"          =>      "image/png",
  ".svg"          =>      "image/svg+xml",
  ".css"          =>      "text/css",
  ".html"         =>      "text/html",
  ".htm"          =>      "text/html",
  ".xhtml"        =>      "application/xhtml+xml",
  ".xhtmlmp"      =>      "application/vnd.wap.xhtml+xml",
  ".js"           =>      "application/x-javascript",
  ".log"          =>      "text/plain",
  ".conf"         =>      "text/plain",
  ".text"         =>      "text/plain",
  ".txt"          =>      "text/plain",
  ".dtd"          =>      "text/xml",
  ".xml"          =>      "text/xml",
  ".manifest"     =>      "text/cache-manifest",
 )

# Use the "Content-Type" extended attribute to obtain mime type if possible
mimetype.use-xattr          = "enable"

##
# which extensions should not be handle via static-file transfer
#
# .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi
static-file.exclude-extensions = ( ".php", ".pl", ".cgi" )

server.bind = "localhost"
server.port = 8001

## virtual directory listings
dir-listing.activate        = "enable"
#dir-listing.encoding       = "iso-8859-2"
#dir-listing.external-css   = "style/oldstyle.css"

## enable debugging
#debug.log-request-header   = "enable"
#debug.log-response-header  = "enable"
#debug.log-request-handling = "enable"
#debug.log-file-not-found   = "enable"

#### SSL engine
#ssl.engine                 = "enable"
#ssl.pemfile                = "server.pem"

# Rewrite rule for utf-8 path test (LayoutTests/http/tests/uri/utf8-path.html)
# See the apache rewrite rule at LayoutTests/http/tests/uri/intercept/.htaccess
# Rewrite rule for LayoutTests/http/tests/appcache/cyrillic-uri.html.
# See the apache rewrite rule at
# LayoutTests/http/tests/appcache/resources/intercept/.htaccess
url.rewrite-once = (
  "^/uri/intercept/(.*)" => "/uri/resources/print-uri.php",
  "^/appcache/resources/intercept/(.*)" => "/appcache/resources/print-uri.php"
)

# LayoutTests/http/tests/xmlhttprequest/response-encoding.html uses an htaccess
# to override charset for reply2.txt, reply2.xml, and reply4.txt.
$HTTP["url"] =~ "^/xmlhttprequest/resources/reply2.(txt|xml)" {
  mimetype.assign = (
    ".txt" => "text/plain; charset=windows-1251",
    ".xml" => "text/xml; charset=windows-1251"
  )
}
$HTTP["url"] =~ "^/xmlhttprequest/resources/reply4.txt" {
  mimetype.assign = ( ".txt" => "text/plain; charset=koi8-r" )
}

# LayoutTests/http/tests/appcache/wrong-content-type.html uses an htaccess
# to override mime type for wrong-content-type.manifest.
$HTTP["url"] =~ "^/appcache/resources/wrong-content-type.manifest" {
  mimetype.assign = ( ".manifest" => "text/plain" )
}

# Autogenerated test-specific config follows.