-
Notifications
You must be signed in to change notification settings - Fork 0
/
lighttpd.conf
46 lines (40 loc) · 1008 Bytes
/
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
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 = (
"R_LIBS_USER" => env.R_LIBS_USER, # used when R is run from php
"DATADIR" => env.DATADIR
)
#log
server.breakagelog = "/dev/stderr"
server.errorlog = "/dev/stderr"
accesslog.filename = "/dev/stderr"
index-file.names = ( "index.html" )
cgi.assign = (
".cgi" => ""
)