diff --git a/advanced/lighttpd.conf b/advanced/lighttpd.conf index 3998269a..933983b6 100644 --- a/advanced/lighttpd.conf +++ b/advanced/lighttpd.conf @@ -37,15 +37,3 @@ $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." ) - - # Set the cache to 1 day for better performance - expire.url = ("" => "access plus 1 days") - - # Send the query into the black hole - url.rewrite = (".*" => "pihole/index.html" ) -}