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 ε΄ε
[email protected]
blog: http://www.sanote.org
====================