-
Notifications
You must be signed in to change notification settings - Fork 5
/
lighttpd.conf
46 lines (35 loc) · 1.13 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
server.port = 8800
server.modules = (
"mod_redirect",
"mod_access",
"mod_fastcgi"
)
include "mime-types.conf"
server.username = "nobody"
server.groupname = "nobody"
### only root can use these options
#server.chroot = "/"
server.document-root = "/var/www"
index-file.names = ("index.html", "index.php")
fastcgi.debug = 1
fastcgi.server = ( ".php" => ((
"bin-path" => "/usr/bin/php-cgi",
"socket" => "/tmp/php.socket",
"min-procs" => 1,
"max-procs" => 2,
"max-load-per-proc" => 4,
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "2",
"PHP_FCGI_MAX_REQUESTS" => "15"
)
)))
url.access-deny = ( "~", ".inc", ".sqlite", ".sh", ".ht" )
$HTTP["url"] =~ "/(config.js|changelog)/" {
url.access-deny = ("")
}
# well-known redirects
url.redirect = (
"^/.well-known/caldav" => "/baikal/html/dav.php",
"^/.well-known/carddav" => "/baikal/html/dav.php"
)
# debug.log-request-handling = "enable"