public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Search Repo:
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
mephisto / config / lighttpd.sample.conf
100644 46 lines (39 sloc) 1.548 kb
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
# Default configuration file for the lighttpd web server
# Start using ./script/server lighttpd
 
server.port = 3002
 
server.modules = ( "mod_rewrite", "mod_accesslog", "mod_fastcgi" )
server.error-handler-404 = "/dispatch.fcgi"
server.document-root = CWD + "/public/"
 
server.errorlog = CWD + "/log/lighttpd.error.log"
accesslog.filename = CWD + "/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" => CWD + "/tmp/sockets/fcgi.socket",
        "bin-path" => CWD + "/public/dispatch.fcgi",
        "bin-environment" => ( "RAILS_ENV" => "production" )
      )
  )
)
 
mimetype.assign = (
  ".css" => "text/css",
  ".gif" => "image/gif",
  ".htm" => "text/html",
  ".html" => "text/html",
  ".jpeg" => "image/jpeg",
  ".jpg" => "image/jpeg",
  ".js" => "text/javascript",
  ".png" => "image/png",
  ".swf" => "application/x-shockwave-flash",
  ".txt" => "text/plain"
)
 
# Making sure file uploads above 64k always work when using IE or Safari
# For more information, see http://trac.lighttpd.net/trac/ticket/360
$HTTP["useragent"] =~ "^(.*MSIE.*)|(.*AppleWebKit.*)$" {
  server.max-keep-alive-requests = 0
}