From bb79d5332cbbfdbd4867caddb24402d2ed098c97 Mon Sep 17 00:00:00 2001 From: Mcat12 Date: Sun, 17 Jan 2016 20:36:59 -0500 Subject: [PATCH] Added back in debugging response header --- advanced/lighttpd.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/advanced/lighttpd.conf b/advanced/lighttpd.conf index 933983b6..6b33fa50 100644 --- a/advanced/lighttpd.conf +++ b/advanced/lighttpd.conf @@ -37,3 +37,9 @@ $HTTP["url"] =~ "^/admin/" { # Create a response header for debugging using curl -I setenv.add-response-header = ( "X-Pi-hole" => "The Pi-hole Web interface is working!" ) } + +# If the URL does not start with /admin, then it is a query for an ad domain +$HTTP["url"] =~ "^(?!/admin)/.*" { + # Create a response header for debugging using curl -I + setenv.add-response-header = ( "X-Pi-hole" => "A black hole for Internet advertisements." ) +}