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