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 C6C3E9760 for ; Tue, 5 Jun 2012 03:33:59 +0000 (UTC) Received: (qmail 962 invoked by uid 500); 5 Jun 2012 03:33:58 -0000 Delivered-To: apmail-trafficserver-users-archive@trafficserver.apache.org Received: (qmail 480 invoked by uid 500); 5 Jun 2012 03:33:50 -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 431 invoked by uid 99); 5 Jun 2012 03:33:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jun 2012 03:33:48 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of buaawkl@gmail.com designates 209.85.214.170 as permitted sender) Received: from [209.85.214.170] (HELO mail-ob0-f170.google.com) (209.85.214.170) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jun 2012 03:33:43 +0000 Received: by obbuo13 with SMTP id uo13so9460389obb.29 for ; Mon, 04 Jun 2012 20:33:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=nMlaCBr97FQOyr80Bzri9iT13th6ZJY9OCZeMrJ0pB4=; b=iqCW6MuVno6DDp/LUCq5V/6svc87k7/6eBdDx9B/L0HsEmjGEBse3Vv9Eyf3VdQ6yN DjTyPMNl0Epwfw6QubJ0zLsOY1E1jandsdOIqFNmYxTvf7FT27Xa8hqCaBxVePFG//El uHyi7BBnrk6FaNx3a3f2Vsmtcrir+YW2GkZbPuVC2VIcakq0R/8vveFpuKuQKTK/Gudi ALJgJ+zBGICMnacxbbDQIAqKHFpyUk20T2RSUdU2Xy2iIzTHqgTdpsbEzfvJiitqcDcj oxtCJWUm8XQIl/HZnGRNwiTe2K1eH/iUANIRR/dMDFBwdVHQhJgAIweiu4PXDMiyz+Fu q4qg== MIME-Version: 1.0 Received: by 10.182.212.4 with SMTP id ng4mr14235975obc.20.1338867202234; Mon, 04 Jun 2012 20:33:22 -0700 (PDT) Sender: buaawkl@gmail.com Received: by 10.60.17.2 with HTTP; Mon, 4 Jun 2012 20:33:21 -0700 (PDT) In-Reply-To: <4F9AE3B5.1070804@apache.org> References: <1335353956.1948.YahooMailNeo@web160906.mail.bf1.yahoo.com> <1335357772.94709.YahooMailNeo@web160905.mail.bf1.yahoo.com> <4F9804FD.1030809@apache.org> <1335543238.45842.YahooMailNeo@web160905.mail.bf1.yahoo.com> <4F9AE3B5.1070804@apache.org> Date: Tue, 5 Jun 2012 11:33:21 +0800 X-Google-Sender-Auth: hzJ04xmK62TWpTi4dCeUXgUQfCM Message-ID: Subject: Re: Priority of remap.config rules From: Conan To: users@trafficserver.apache.org Content-Type: multipart/alternative; boundary=e89a8f6437cafd994804c1b14f7b X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f6437cafd994804c1b14f7b Content-Type: text/plain; charset=ISO-8859-1 My test result: regex_remap is prior to map sometimes. #remap.config map http://forbidden.test.com http://test.com @action=deny # work map http://www.test.com http://some.test.com # not work regex_map http://(.*).test.com http://$1.org.test.com # catch all map http://www1.test.com http://some.test.com # not work too related docs: http://trafficserver.apache.org/docs/trunk/admin/configuration-files/remap.config.en.html#precedence On Sat, Apr 28, 2012 at 2:21 AM, Leif Hedstrom wrote: > On 4/27/12 10:13 AM, Elli wrote: > >> Thank you for the clarification. For what it's worth I agree it would >> make configuration easier to understand. I will try to file a bug shortly. >> >> > I'm pretty sure there already is a bug file for this :). > > -- leif > > --e89a8f6437cafd994804c1b14f7b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable My test result: regex_remap is prior to map sometimes.

#= remap.config
map =A0 =A0 =A0 =A0 =A0 =A0http://forbidden.test.com =A0 = http://test.com =A0@action=3Ddeny =A0 =A0# work
map =A0 =A0 =A0 =A0 =A0 =A0http://www.= test.com =A0 =A0 =A0 =A0 http://some.t= est.com =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0# not work
regex_m= ap =A0http://(.*).test.com =A0 =A0 =A0 =A0 = =A0 =A0http://$1.org.test.com =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 # catch all
map =A0 =A0 =A0 =A0 =A0 =A0http://www= 1.test.com =A0 =A0 =A0 =A0http://some.= test.com =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 # not work too

<= /div>
related docs:
htt= p://trafficserver.apache.org/docs/trunk/admin/configuration-files/remap.con= fig.en.html#precedence

On Sat, Apr 28, 2012 at 2:21 AM, Leif Hedstr= om <zwoop@apache.org> wrote:
On 4/27/12 10:13 AM, Elli wrote:
Thank you for the clarification. =A0For what it's worth I agree it woul= d make configuration easier to understand. I will try to file a bug shortly= .


I'm pretty sure there already is a bug file for this :).

-- leif


--e89a8f6437cafd994804c1b14f7b--