mirror of
https://github.com/pi-hole/pi-hole
synced 2024-11-18 14:18:15 +00:00
539f9d4da0
remove obsolete pihole block page error handler x-ref: Remove the advanced functionality of the 404 page (Blockpage) https://github.com/pi-hole/pi-hole/pull/3910 Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
75 lines
2.9 KiB
Plaintext
75 lines
2.9 KiB
Plaintext
# Pi-hole: A black hole for Internet advertisements
|
|
# (c) 2017 Pi-hole, LLC (https://pi-hole.net)
|
|
# Network-wide ad blocking via your own hardware.
|
|
#
|
|
# Lighttpd config for Pi-hole
|
|
#
|
|
# This file is copyright under the latest version of the EUPL.
|
|
# Please see LICENSE file for your rights under this license.
|
|
|
|
###############################################################################
|
|
# FILE AUTOMATICALLY OVERWRITTEN BY PI-HOLE INSTALL/UPDATE PROCEDURE. #
|
|
# ANY CHANGES MADE TO THIS FILE AFTER INSTALL WILL BE LOST ON THE NEXT UPDATE #
|
|
# #
|
|
# CHANGES SHOULD BE MADE IN A SEPARATE CONFIG FILE: #
|
|
# /etc/lighttpd/external.conf #
|
|
###############################################################################
|
|
|
|
server.modules = (
|
|
"mod_access",
|
|
"mod_accesslog",
|
|
"mod_auth",
|
|
"mod_expire",
|
|
"mod_redirect",
|
|
"mod_setenv",
|
|
"mod_rewrite"
|
|
)
|
|
|
|
server.document-root = "/var/www/html"
|
|
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
|
|
server.errorlog = "/var/log/lighttpd/error-pihole.log"
|
|
server.pid-file = "/run/lighttpd.pid"
|
|
server.username = "www-data"
|
|
server.groupname = "www-data"
|
|
# For lighttpd version 1.4.46 or above, the port can be overwritten in `/etc/lighttpd/external.conf` using the := operator
|
|
# e.g. server.port := 8000
|
|
server.port = 80
|
|
accesslog.filename = "/var/log/lighttpd/access-pihole.log"
|
|
accesslog.format = "%{%s}t|%V|%r|%s|%b"
|
|
|
|
# Allow streaming response
|
|
# reference: https://redmine.lighttpd.net/projects/lighttpd/wiki/Server_stream-response-bodyDetails
|
|
server.stream-response-body = 1
|
|
#ssl.read-ahead = "disable"
|
|
|
|
index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
|
|
url.access-deny = ( "~", ".inc", ".md", ".yml", ".ini" )
|
|
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
|
|
|
|
mimetype.assign = (
|
|
".ico" => "image/x-icon",
|
|
".jpeg" => "image/jpeg",
|
|
".jpg" => "image/jpeg",
|
|
".png" => "image/png",
|
|
".svg" => "image/svg+xml",
|
|
".css" => "text/css; charset=utf-8",
|
|
".html" => "text/html; charset=utf-8",
|
|
".js" => "text/javascript; charset=utf-8",
|
|
".json" => "application/json; charset=utf-8",
|
|
".map" => "application/json; charset=utf-8",
|
|
".txt" => "text/plain; charset=utf-8",
|
|
".eot" => "application/vnd.ms-fontobject",
|
|
".otf" => "font/otf",
|
|
".ttc" => "font/collection",
|
|
".ttf" => "font/ttf",
|
|
".woff" => "font/woff",
|
|
".woff2" => "font/woff2"
|
|
)
|
|
|
|
# Add user chosen options held in (optional) external file
|
|
include "external*.conf"
|
|
|
|
# default listening port for IPv6 falls back to the IPv4 port
|
|
include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
|
|
include "/etc/lighttpd/conf-enabled/*.conf"
|