aboutsummaryrefslogtreecommitdiffstats
path: root/railties/configs/lighttpd.conf
blob: 80a6703b37ec9f9aacb6c521f672a62c2928c3bf (plain) (blame)
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
# Default configuration file for the lighttpd web server
# Start using ./script/lighttpd

server.port = 3000

server.modules           = ( "mod_rewrite", "mod_accesslog", "mod_fastcgi" )
server.error-handler-404 = "/dispatch.fcgi"
server.document-root     = "public/"

server.errorlog          = "log/lighttpd.error.log"
accesslog.filename       = "log/lighttpd.access.log"

url.rewrite              = ( "^/$" => "index.html", "^([^.]+)$" => "$1.html" )

# Change *-procs to 2 if you need to use Upload Progress or other tasks that
# *need* to execute a second request while the first is still pending.
fastcgi.server = ( ".fcgi" =>
  ( "localhost" =>
      (
        "min-procs" => 1, 
        "max-procs" => 1,
        "socket"    => "log/fcgi.socket",
        "bin-path"  => "public/dispatch.fcgi",
        "bin-environment" => ( "RAILS_ENV" => "development" )
      )
  )
)

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"        =>  "audio/x-wav",
  ".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",
  ".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"
)