You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafficserver.apache.org by jacky <sh...@gmail.com> on 2010/12/06 09:35:28 UTC
split remap urls to individual files
hi, everyone,
i have some problem about my traffic server configration work.
The traffic server docs said that all url remap rules should be put in remap.config. But in our business , i wanna put every domain remap rules in different config file separately.
for example , i wanna put "map http://js.a.com http://www.a.com/js" in a_remap.config, and put "map http://js.b.com http://www.b.com/js" in b_remap.config.
But i found there is no "include" or similar instruction supplied by TrafficServer , so i can not use "include *_remap.config" instruction in a main remap.config to include all *_remap.config file like apache configration.
so , does anyone know how to split url remap rules to several confie files ?
====================
Best regards!
====================
jacky wu
jacky.wucheng@gmail.com
blog: http://www.sanote.org
====================
Re: split remap urls to individual files
Posted by jacky <sh...@gmail.com>.
Leif Hedstrom,
thanks a lot for your suggestion.
On 2010-12-6, at δΈε11:40, Leif Hedstrom wrote:
> On 12/06/2010 01:35 AM, jacky wrote:
>> hi, everyone,
>> i have some problem about my traffic server configration work.
>> The traffic server docs said that all url remap rules should be put in remap.config. But in our business , i wanna put every domain remap rules in different config file separately.
>> for example , i wanna put "map http://js.a.com http://www.a.com/js" in a_remap.config, and put "map http://js.b.com http://www.b.com/js" in b_remap.config.
>> But i found there is no "include" or similar instruction supplied by TrafficServer , so i can not use "include *_remap.config" instruction in a main remap.config to include all *_remap.config file like apache configration.
>>
>> so , does anyone know how to split url remap rules to several confie files ?
>
>
> There's no way to do this now, but why not just do it as part of your "package management" process? I.e. put your "include" file in some directory, and merge them into /usr/local/etc/trafficserver/remap.config (perhaps using a Makefile, so it only updates the destination file if something has changed, and then run traffic_line -x).
>
> -- leif
>
====================
Best regards!
====================
wucheng ε΄ε
jacky.wucheng@gmail.com
blog: http://www.sanote.org
====================
Re: split remap urls to individual files
Posted by Leif Hedstrom <zw...@apache.org>.
On 12/06/2010 01:35 AM, jacky wrote:
> hi, everyone,
> i have some problem about my traffic server configration work.
> The traffic server docs said that all url remap rules should be put in remap.config. But in our business , i wanna put every domain remap rules in different config file separately.
> for example , i wanna put "map http://js.a.com http://www.a.com/js" in a_remap.config, and put "map http://js.b.com http://www.b.com/js" in b_remap.config.
> But i found there is no "include" or similar instruction supplied by TrafficServer , so i can not use "include *_remap.config" instruction in a main remap.config to include all *_remap.config file like apache configration.
>
> so , does anyone know how to split url remap rules to several confie files ?
There's no way to do this now, but why not just do it as part of your
"package management" process? I.e. put your "include" file in some
directory, and merge them into /usr/local/etc/trafficserver/remap.config
(perhaps using a Makefile, so it only updates the destination file if
something has changed, and then run traffic_line -x).
-- leif