Return-Path: X-Original-To: apmail-trafficserver-users-archive@www.apache.org Delivered-To: apmail-trafficserver-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3BC109573 for ; Wed, 1 Feb 2012 14:57:06 +0000 (UTC) Received: (qmail 46648 invoked by uid 500); 1 Feb 2012 14:57:06 -0000 Delivered-To: apmail-trafficserver-users-archive@trafficserver.apache.org Received: (qmail 46582 invoked by uid 500); 1 Feb 2012 14:57:05 -0000 Mailing-List: contact users-help@trafficserver.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@trafficserver.apache.org Delivered-To: mailing list users@trafficserver.apache.org Received: (qmail 46569 invoked by uid 99); 1 Feb 2012 14:57:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Feb 2012 14:57:05 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [71.6.165.248] (HELO kramer.ogre.com) (71.6.165.248) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Feb 2012 14:56:57 +0000 Received: from [192.168.201.78] (homey.ogre.com [24.52.35.136]) (authenticated bits=0) by kramer.ogre.com (8.14.5/8.14.5) with ESMTP id q11EuWkh030876 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT); Wed, 1 Feb 2012 06:56:35 -0800 X-DKIM: Sendmail DKIM Filter v2.8.3 kramer.ogre.com q11EuWkh030876 Message-ID: <4F2952A0.3080001@apache.org> Date: Wed, 01 Feb 2012 07:56:32 -0700 From: Leif Hedstrom User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: users@trafficserver.apache.org CC: "Alan M. Carroll" Subject: Re: HTTP Headers in a forward proxy References: <168908378.20120131221350@network-geographics.com> <1145144722.20120201082858@network-geographics.com> In-Reply-To: <1145144722.20120201082858@network-geographics.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2/1/12 7:28 AM, Alan M. Carroll wrote: > I think it would be a good start, but the problem would be that he wanted this in a forward proxy. He would have to set up remap rules to trigger the header filtering only on the appropriate targets. I'm not sure if it would be simpler to tweak the plugin to check the URL or not. Yeah. He could (as you said) create one (or a few) remap.config rules for youtube (he has to make sure remap.config is not required, but enabled via the reverse proxy config). E.g. map http://static.youtube.com http://static.youtube.com @plugin=header_filter.so @pparam=youtube.config or some such. Also remember he could use regular expressions here (on the host part). e.g. regex_map http://(.+)\.youtube\.(.+) http://$1.youtube.$2 @plugin=header_filter.so (or some such, I don't know what the various youtube URLs looks like). Cheers, -- Leif