1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-11-05 15:39:46 +00:00

Merge lighttpd JS changes into development

This commit is contained in:
Promofaux 2016-03-24 23:21:11 +00:00
commit 26b7e7ec8e
3 changed files with 4 additions and 1 deletions

1
advanced/index.js Normal file
View File

@ -0,0 +1 @@
var x = "Pi-hole: A black hole for Internet advertisements."

View File

@ -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")
}

View File

@ -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
}