diff --git a/advanced/index.js b/advanced/index.js new file mode 100644 index 00000000..c9da5aff --- /dev/null +++ b/advanced/index.js @@ -0,0 +1 @@ +var x = "Pi-hole: A black hole for Internet advertisements." 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") } diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index c3a98687..97b47dad 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -619,7 +619,7 @@ installPiholeWeb() { else $SUDO mkdir /var/www/html/pihole $SUDO mv /var/www/html/index.lighttpd.html /var/www/html/index.lighttpd.orig - $SUDO cp /etc/.pihole/advanced/index.html /var/www/html/pihole/index.html + $SUDO cp /etc/.pihole/advanced/index.* /var/www/html/pihole/. $SUDO echo " done!" fi }