blob: 181f2c64be7bac0a2756aacc534f989504edbddc (
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
|
var.log_root = env.HOME + "/.local/share/lighttpd"
var.server_root = env.PWD + "/site"
var.state_dir = "/tmp"
var.home_dir = "/tmp"
var.conf_dir = env.PWD + "/server"
var.cache_dir = env.HOME + "/.cache/lighttpd"
var.socket_dir = home_dir + "/sockets"
server.modules = (
"mod_access",
"mod_fastcgi",
"mod_scgi",
"mod_accesslog"
)
fastcgi.debug = 1
fastcgi.server = (
".cgi" => ((
"host" => "127.0.0.1",
"port" => "9000",
"check-local" => "disable"
)))
server.bind = "0.0.0.0"
server.port = 8080
server.document-root = server_root
server.pid-file = state_dir + "/lighttpd.pid"
server.errorlog = log_root + "/error.log"
accesslog.filename = log_root + "/access.log"
server.max-fds = 1024
index-file.names += (
"index.html"
)
url.access-deny = ( "~", ".inc" )
static-file.exclude-extensions = ( ".cgi", ".fcgi", ".scgi" )
include conf_dir + "/mime.conf"
dir-listing.exclude = ( "~$" )
dir-listing.encoding = "UTF-8"
## This time we launch the rails application via scgi_rails externally.
##
#$HTTP["host"] == "rails2.example.com" {
# server.document-root = server_root + "/rails/someapp/public"
# server.error-handler-404 = "/dispatch.scgi"
# scgi.server = ( ".scgi" =>
# ( "scgi-tcp" =>
# (
# "host" => "127.0.0.1",
# "port" => 9998,
# "check-local" => "disable",
# )
# )
# )
#}
|