From a44a201f0088a48a4240f380dded8c815ed4411e Mon Sep 17 00:00:00 2001 From: Kevin Ross Date: Mon, 14 Mar 2016 22:51:16 -0500 Subject: [PATCH] rewrite js files to a valid stub --- advanced/lighttpd.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/advanced/lighttpd.conf b/advanced/lighttpd.conf index 5a662ffa..124371a9 100644 --- a/advanced/lighttpd.conf +++ b/advanced/lighttpd.conf @@ -53,4 +53,6 @@ $HTTP["url"] =~ "^/admin/" { $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." ) + # rewrite only js requests + url.rewrite = ("(.*).js" => "pihole/index.js") }