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.
This commit is contained in:
Robert Vineyard 2015-03-23 11:36:58 -04:00
parent 0ae8168351
commit 5d322f2dd2

View file

@ -28,5 +28,5 @@ include_shell "/usr/share/lighttpd/create-mime.assign.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl" include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
$HTTP["host"] =~ "ads.hulu.com|ads-v-darwin.hulu.com|" { $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")
} }