-
Notifications
You must be signed in to change notification settings - Fork 0
/
16-dhcpLeases.conf
57 lines (54 loc) · 1.91 KB
/
16-dhcpLeases.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
$HTTP["url"] =~ "^/" {
server.document-root = "/var/www/html"
server.stream-response-body = 1
accesslog.filename = "/var/log/lighttpd/access-pihole.log"
accesslog.format = "%{%s}t|%h|%V|%r|%s|%b"
fastcgi.server = (
".php" => (
"localhost" => (
"socket" => "/run/lighttpd/pihole-php-fastcgi.socket",
"bin-path" => "/usr/bin/php-cgi",
"min-procs" => 1,
"max-procs" => 1,
"bin-environment" => (
"TZ" => "America/New_York",
"PIHOLE_DOCKER_TAG" => "",
"PHP_ERROR_LOG" => "/var/log/lighttpd/error-pihole.log",
"CORS_HOSTS" => "",
"VIRTUAL_HOST" => "pihole",
"PHP_FCGI_CHILDREN" => "4",
"PHP_FCGI_MAX_REQUESTS" => "10000",
),
"bin-copy-environment" => (
"PATH", "SHELL", "USER"
),
"broken-scriptfilename" => "enable",
)
)
)
}
# (keep this on one line for basic-install.sh filtering during install)
server.modules += ( "mod_access", "mod_accesslog", "mod_redirect", "mod_fastcgi", "mod_setenv" )
$HTTP["url"] == "/dhcpLeases.php" {
$HTTP["querystring"] =~ "htmlTable" {
accesslog.filename = ""
}
$HTTP["querystring"] =~ "textTable" {
accesslog.filename = ""
}
$HTTP["querystring"] =~ "jsonTable" {
accesslog.filename = ""
}
$HTTP["querystring"] =~ "fmt" {
accesslog.filename = ""
}
$HTTP["querystring"] =~ "noDate" {
accesslog.filename = ""
}
$HTTP["querystring"] =~ "sortOrder" {
accesslog.filename = ""
}
$HTTP["querystring"] =~ "sortField" {
accesslog.filename = ""
}
}