-
Notifications
You must be signed in to change notification settings - Fork 3
/
external.conf
31 lines (30 loc) · 936 Bytes
/
external.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
server.modules += ( "mod_cgi" )
$HTTP["url"] =~ "^/lists(?:/|$)" {
alias.url = ( "/lists/" => "/var/www/html/lists/index.cgi" )
cgi.assign = ( ".cgi" => "/usr/bin/perl" )
}
$SERVER["socket"] == ":8082" {
server.document-root = "/var/www/html"
ssl.engine = "enable"
ssl.pemfile = "/etc/lighttpd/cert.pem"
auth.backend = "htdigest"
auth.backend.htdigest.userfile = "/etc/lighttpd/.htpasswd/lighttpd-htdigest.user"
auth.require = ( "/lists/" =>
(
"method" => "digest",
"realm" => "Blocklists",
"require" => "valid-user"
),
)
setenv.add-response-header = (
"X-XSS-Protection" => "1; mode=block"
)
}
$SERVER["socket"] == ":443" {
server.document-root = "/var/www/html/errors/"
ssl.engine = "enable"
ssl.pemfile = "/etc/lighttpd/cert.pem"
}
$SERVER["socket"] == ":80" {
server.document-root = "/var/www/html/errors/"
}