From 5d322f2dd21ece45846cea80b2c28292591cd02d Mon Sep 17 00:00:00 2001 From: Robert Vineyard Date: Mon, 23 Mar 2015 11:36:58 -0400 Subject: [PATCH] Fix Hulu ad redirection Change "^/(.*)" to "^/published/(.*)" in the url.redirect configuration. This seems to allow non-video communications with the Hulu ad servers to go through unmolested, while redirecting only the ad videos to the local media server. I've tested the change and it works well for me. --- block hulu ads/lighttpd.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block hulu ads/lighttpd.conf b/block hulu ads/lighttpd.conf index 354a2d6d..1349374b 100644 --- a/block hulu ads/lighttpd.conf +++ b/block hulu ads/lighttpd.conf @@ -28,5 +28,5 @@ include_shell "/usr/share/lighttpd/create-mime.assign.pl" include_shell "/usr/share/lighttpd/include-conf-enabled.pl" $HTTP["host"] =~ "ads.hulu.com|ads-v-darwin.hulu.com|" { - url.redirect = ( "^/(.*)" => "http://192.168.1.101:8200/MediaItems/19.mov") + url.redirect = ( "^/published/(.*)" => "http://192.168.1.101:8200/MediaItems/19.mov") }