-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlighttpd.conf
61 lines (56 loc) · 1.37 KB
/
lighttpd.conf
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
server.document-root = env.DOCROOT
server.port = env.PORT
server.modules = (
"mod_expire",
"mod_access",
"mod_accesslog",
"mod_setenv",
"mod_extforward",
"mod_auth",
"mod_cgi",
"mod_fastcgi"
)
mimetype.assign = (
".html" => "text/html",
".txt" => "text/plain",
".jpg" => "image/jpeg",
".png" => "image/png",
".ico" => "image/x-icon",
".svg" => "image/svg+xml",
".mp3" => "audio/mpeg",
".css" => "text/css",
".js" => "text/javascript",
".json" => "application/json"
)
# enable directoy listing without index.html
server.dir-listing = "disable"
dir-listing.activate = "disable"
server.follow-symlink = "enable"
setenv.add-environment = (
"DBHOST" => env.DBHOST,
"DBPORT" => env.DBPORT,
"DBNAME" => env.DBNAME,
"DBUSER" => env.DBUSER,
"R_LIBS_USER" => env.R_LIBS_USER # used when R is run from php
)
#log
server.breakagelog = "/dev/stderr"
server.errorlog = "/dev/stderr"
accesslog.filename = "/dev/stderr"
index-file.names = ( "index.html" )
cgi.assign = (
".cgi" => ""
)
fastcgi.server = ( ".php" =>
((
"socket" => env.BASEDIR + "/run/php.socket",
"bin-path" => env.BASEDIR + "/3rdparty/php/bin/php-cgi",
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "16",
"PHP_FCGI_MAX_REQUESTS" => "10000"
),
"min-procs" => 1,
"max-procs" => 1,
"idle-timeout" => 20
))
)