From 4b70e7f539ee0ffb8f8899316a3cca1ed5cfdb42 Mon Sep 17 00:00:00 2001 From: jacobsalmela Date: Sun, 12 Oct 2014 12:26:23 -0500 Subject: [PATCH] working config file All hulu ad urls--third party urls to be added later --- block hulu ads/lighttpd.conf | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/block hulu ads/lighttpd.conf b/block hulu ads/lighttpd.conf index 5c9d5e57..0c104db3 100644 --- a/block hulu ads/lighttpd.conf +++ b/block hulu ads/lighttpd.conf @@ -3,7 +3,7 @@ server.modules = ( "mod_alias", "mod_compress", "mod_redirect", -# "mod_rewrite", + "mod_rewrite", ) server.document-root = "/var/www" @@ -27,6 +27,9 @@ include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port include_shell "/usr/share/lighttpd/create-mime.assign.pl" include_shell "/usr/share/lighttpd/include-conf-enabled.pl" -$HTTP["host"] == "ads-v-darwin.hulu.com|ads.hulu.com|t.hulu.com|t2.hulu.com|doubleclick.net|scorecardresearch.com|ad.doubleclick.net|a1697.b.akamai.net|secure-us.imrworldwide.com|bs.serving-sys.com|ad.doubleclick.net" { - url.redirect = ("^/(.*)" => "http://192.168.1.101:8200/MediaItems/19.mov") -} \ No newline at end of file +$HTTP["host"] =~ "ads-v-darwin.hulu.com|ads.hulu.com|a.huluad.com|hulu.112.2o7.net|huludev.112.2o7.net|ll.a.hulu.com|t2.hulu.com|t2.huluim.com|t-ak.hulu.com|track.hulu.com|tw.i.hulu.com|urlcheck.hulu.com" { + url.redirect = ( "^/(.*)" => "http://192.168.1.101:8200/MediaItems/19.mov") +} +#else $HTTP["host"] =~ ".*" { +# url.rewrite = (".*" => "pihole/index.html") +#} \ No newline at end of file