Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / conf / lighttpd.conf
1 server.tag                  = "LightTPD/1.4.19 (Win32)"
2 server.modules              = ( "mod_accesslog",
3                                 "mod_alias",
4                                 "mod_cgi",
5                                 "mod_rewrite" )
6
7 # default document root required
8 server.document-root = "."
9
10 # files to check for if .../ is requested
11 index-file.names            = ( "index.php", "index.pl", "index.cgi",
12                                 "index.html", "index.htm", "default.htm" )
13 # mimetype mapping
14 mimetype.assign             = (
15   ".bmp"          =>      "image/bmp",
16   ".gif"          =>      "image/gif",
17   ".jpg"          =>      "image/jpeg",
18   ".jpeg"         =>      "image/jpeg",
19   ".png"          =>      "image/png",
20   ".svg"          =>      "image/svg+xml",
21   ".css"          =>      "text/css",
22   ".html"         =>      "text/html",
23   ".htm"          =>      "text/html",
24   ".xhtml"        =>      "application/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"          =>      "application/xml-dtd",
31   ".xml"          =>      "application/xml",
32   ".manifest"     =>      "text/cache-manifest",
33  )
34
35 # Use the "Content-Type" extended attribute to obtain mime type if possible
36 mimetype.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
42 static-file.exclude-extensions = ( ".php", ".pl", ".cgi" )
43
44 server.bind = "localhost"
45 server.port = 8001
46
47 ## virtual directory listings
48 dir-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
67 url.rewrite-once = (
68   "^/uri/intercept/(.*)" => "/uri/resources/print-uri.php",
69   "^/appcache/resources/intercept/(.*)" => "/appcache/resources/print-uri.php",
70   "^/security/xssAuditor/intercept/([^/]*)/(.*)" => "/security/xssAuditor/resources/$1?q=$2"
71 )
72
73 # LayoutTests/http/tests/xmlhttprequest/response-encoding.html uses an htaccess
74 # to override charset for reply2.txt, reply2.xml, and reply4.txt.
75 $HTTP["url"] =~ "^/xmlhttprequest/resources/reply2.(txt|xml)" {
76   mimetype.assign = (
77     ".txt" => "text/plain; charset=windows-1251",
78     ".xml" => "text/xml; charset=windows-1251"
79   )
80 }
81 $HTTP["url"] =~ "^/xmlhttprequest/resources/reply4.txt" {
82   mimetype.assign = ( ".txt" => "text/plain; charset=koi8-r" )
83 }
84
85 # LayoutTests/http/tests/appcache/wrong-content-type.html uses an htaccess
86 # to override mime type for wrong-content-type.manifest.
87 $HTTP["url"] =~ "^/appcache/resources/wrong-content-type.manifest" {
88   mimetype.assign = ( ".manifest" => "text/plain" )
89 }
90
91 # Autogenerated test-specific config follows.