trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Kneale <>
Subject Re: HTTP Headers in a forward proxy
Date Wed, 01 Feb 2012 21:22:11 GMT
Hello Alan and Leif,

Thank you for your insight.

I have downloaded and installed the header_filter plugin. However, I am
having some difficulty with making it work. I can visit YouTube and other
pages, but it seems to be ignoring the header manipulation. If you see any
glaring mistakes, I would appreciate and advise you may have.

So far, I have the following configuration items:

--- records.config ---
CONFIG proxy.config.url_remap.remap_required INT 0

--- remap.config ---
regex_map http://(.*) http://$1

--- youtube.config ---
X-YouTube-Edu-Filter +*youtube_code_here*+

On Wed, Feb 1, 2012 at 6:56 AM, Leif Hedstrom <> wrote:

> 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 @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://$$2
> (or some such, I don't know what the various youtube URLs looks like).
> Cheers,
> -- Leif

View raw message