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 6A6589873 for ; Thu, 2 Feb 2012 00:33:42 +0000 (UTC) Received: (qmail 2423 invoked by uid 500); 2 Feb 2012 00:33:42 -0000 Delivered-To: apmail-trafficserver-users-archive@trafficserver.apache.org Received: (qmail 2272 invoked by uid 500); 2 Feb 2012 00:33:41 -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 2264 invoked by uid 99); 2 Feb 2012 00:33:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Feb 2012 00:33:41 +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; Thu, 02 Feb 2012 00:33:33 +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 q120X7xX019703 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT) for ; Wed, 1 Feb 2012 16:33:12 -0800 X-DKIM: Sendmail DKIM Filter v2.8.3 kramer.ogre.com q120X7xX019703 Message-ID: <4F29D9C3.90004@apache.org> Date: Wed, 01 Feb 2012 17:33:07 -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 Subject: Re: HTTP Headers in a forward proxy References: <168908378.20120131221350@network-geographics.com> <1145144722.20120201082858@network-geographics.com> <4F2952A0.3080001@apache.org> <728010377.20120201163510@network-geographics.com> In-Reply-To: <728010377.20120201163510@network-geographics.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2/1/12 3:35 PM, Alan M. Carroll wrote: > Wednesday, February 1, 2012, 3:22:11 PM, you wrote: > >> --- remap.config --- >> regex_map http://www.youtube.comhttp://www.youtube.com@plugin=/libexec/trafficserver/header_filter.so @pparam=/etc/trafficserver/youtube.config >> regex_map http://(.*) http://$1 > Are there really no spaces in that? You need one in "comhttp" ("com http") and one before the '@'. Any reason for using I think your MUA messed it up, it had spaces in my client :). In any case, I'm guessing that the URL(s) don't match that first rule (which is a strange rule to have as a regex, since it has no regexes in it). I also think the last rule is unnecessary, either use "map /" or no map rule at all (since you disabled remap required). > My experience is that all the You Tube URLS end in youtube.com. He would want to check his logs, though, to be sure. > > I have to be careful, I've never actually used the remap stuff, but something more like > > map http://youtube.com http://youtube.com @plugin=headerfilter.so @pparam=/etc/trafficserver/youtube.config > regex_map http://(.+)[.]youtube[.]com/(.*) http://$1.youtube.com/$2 @plugin=header_filter.so @pparam=/etc/trafficserver/youtube.config Yeah, that makes more sense. -- Leif