1
|
# {{{ variables
|
2
|
var.basedir = "/var/www"
|
3
|
var.logdir = "/var/log/lighttpd"
|
4
|
var.statedir = "/var/lib/lighttpd"
|
5
|
var.appname = "depot"
|
6
|
# }}}
|
7
|
|
8
|
# {{{ modules
|
9
|
server.modules = (
|
10
|
"mod_rewrite",
|
11
|
"mod_accesslog",
|
12
|
"mod_alias",
|
13
|
# "mod_cgi",
|
14
|
"mod_fastcgi"
|
15
|
)
|
16
|
# }}}
|
17
|
|
18
|
server.port = 80
|
19
|
|
20
|
server.pid-file = "/var/run/lighttpd.pid"
|
21
|
accesslog.filename = var.logdir + "/access_log.log"
|
22
|
server.errorlog = var.logdir + "/error_log.log"
|
23
|
|
24
|
server.indexfiles = ( "index.html" )
|
25
|
#url.rewrite = (
|
26
|
# "^/$" => "index.html",
|
27
|
# "^([^.]+)$" => "$1.html"
|
28
|
#)
|
29
|
server.document-root = var.basedir + "/test/current/public"
|
30
|
server.error-handler-404 = "/dispatch.fcgi"
|
31
|
server.follow-symlink = "enable"
|
32
|
|
33
|
mimetype.assign = (
|
34
|
".css" => "text/css",
|
35
|
".gif" => "image/gif",
|
36
|
".html" => "text/html",
|
37
|
".jpeg" => "image/jpeg",
|
38
|
".jpg" => "image/jpeg",
|
39
|
".js" => "text/javascript",
|
40
|
".pdf" => "application/pdf",
|
41
|
".png" => "image/png",
|
42
|
".txt" => "text/plain",
|
43
|
)
|
44
|
|
45
|
# {{{ includes
|
46
|
#include "mime-types.conf"
|
47
|
# uncomment for cgi support
|
48
|
include "mod_cgi.conf"
|
49
|
# uncomment for php/fastcgi support
|
50
|
# include "mod_fastcgi.conf"
|
51
|
# }}}
|
52
|
|
53
|
fastcgi.server = ( ".fcgi" =>
|
54
|
( "localhost" =>
|
55
|
( "min-procs" => 1,
|
56
|
"max-procs" => 1,
|
57
|
"socket" => "/tmp/tracetest.fcgi.socket",
|
58
|
"bin-path" => var.basedir + "/test/current/public/dispatch.fcgi",
|
59
|
"bin-environment" => ( "RAILS_ENV" => "production" )
|
60
|
)
|
61
|
),
|
62
|
# "/twiki/" =>
|
63
|
# ( "localhost" =>
|
64
|
# ( "socket" => "/tmp/twiki.fcgi.socket",
|
65
|
# "docroot" => "/var/www",
|
66
|
# "check-local" => "disable",
|
67
|
# "min-procs" => 1,
|
68
|
# "max-procs" => 1,
|
69
|
# "bin-path" => var.basedir + "/twiki/bin/twikidispatch.fcgi",
|
70
|
# "bin-copy-environment" =>
|
71
|
# ( "PATH" => "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin")
|
72
|
# )
|
73
|
# )
|
74
|
)
|