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 038B21132B for ; Thu, 12 Jun 2014 10:17:41 +0000 (UTC) Received: (qmail 71679 invoked by uid 500); 12 Jun 2014 10:17:40 -0000 Delivered-To: apmail-trafficserver-users-archive@trafficserver.apache.org Received: (qmail 71618 invoked by uid 500); 12 Jun 2014 10:17:40 -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 71610 invoked by uid 99); 12 Jun 2014 10:17:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jun 2014 10:17:40 +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 girish.vaikom@gmail.com designates 209.85.160.180 as permitted sender) Received: from [209.85.160.180] (HELO mail-yk0-f180.google.com) (209.85.160.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jun 2014 10:17:35 +0000 Received: by mail-yk0-f180.google.com with SMTP id 131so802509ykp.11 for ; Thu, 12 Jun 2014 03:17:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=EhZQPV3UkZffb+d9YGDddfJR2PGGX6fOAzP9lq2RhP0=; b=W5gHnPf/norg7/7Dmcv+83x/LxJCQy8vuMmQvNTCeVfDueJqRV/ADpkPpQ5Xxi0M5f wOvF0dV0SzW2H6HE1XN1N+iyU99p6m9F8huq0CKDreJBJnzYxPBZsv7eaHSBCj3ymemp L1QYtenzSL6M2Ez7bfg0Vb4rSvHJJET0630ni0NUAOI3E05i9e6Lzdndzim/CZR9rRSs DAS2SasSrM7L1aM+t8/S3N1gJoVY4l5/0WUK3wu+8urnKWidB9Cf6n9s613Ldt0N8H0P Clz89U2P6YNYuBSvJyqCoQux9RIQb525qlD7c92WaCeC/bSdmkW3gO2senOxKARvPszB u6lw== MIME-Version: 1.0 X-Received: by 10.236.7.51 with SMTP id 39mr14412344yho.1.1402568234533; Thu, 12 Jun 2014 03:17:14 -0700 (PDT) Received: by 10.170.71.4 with HTTP; Thu, 12 Jun 2014 03:17:14 -0700 (PDT) Date: Thu, 12 Jun 2014 15:47:14 +0530 Message-ID: Subject: Re: regex_remap Can not load the remap table From: Girish G To: users@trafficserver.apache.org Content-Type: multipart/alternative; boundary=001a1133c5ae6485d304fba0dd2a X-Virus-Checked: Checked by ClamAV on apache.org --001a1133c5ae6485d304fba0dd2a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I think it was a syntax error in the maps.reg file. Regex grouping for the last part was giving the error. It worked with ^/(.*)/*.js http://localhost:8080/$0 ^/.* http://anoterhost/$0 On Thu, Jun 12, 2014 at 12:40 PM, Girish G wrote: > Hi, > I am trying to get a regex_remap to remap all the js files to a different > port. > > My remap.config file has > > map / http://localhost:8080 @plugin=3Dregex_remap.so @pparam=3Dmaps.reg > > and my maps.reg has > > ^/(*.js) http://localhost:8080/$h/$0/$1 > > However, I am seeing the following in the diags logs. > > [Jun 12 12:35:31.328] Server {0x2ba3200a8240} WARNING: Failed to create > new instance for plugin /opt/trafficserver/libexec/regex_remap.so (not a > TS_SUCCESS return) > [Jun 12 12:35:31.328] Server {0x2ba3200a8240} WARNING: Could not add rule > at line #199; Aborting! > [Jun 12 12:35:31.328] Server {0x2ba3200a8240} WARNING: [ReverseProxy] > Can't create new remap instance for plugin > "/opt/trafficserver/libexec/regex_remap.so" - Unknown plugin error at lin= e > 199 > [Jun 12 12:35:31.328] Server {0x2ba3200a8240} WARNING: something failed > during BuildTable() -- check your remap plugins! > [Jun 12 12:35:31.328] Server {0x2ba3200a8240} WARNING: Can not load the > remap table, exiting out! > > > What am I doing wrong here? > > -- > ______________________ > =E2=80=8BThanks > , > Girish G Pillai > --=20 ______________________ Cheers, Girish G Pillai --001a1133c5ae6485d304fba0dd2a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I think it was a syntax error in the maps.reg file. Reg= ex grouping for the last part was giving the error. It worked with

^/(.*)/*.js=C2=A0=C2=A0=C2=A0=C2=A0 http://localhost:8080/$0
^/.* http://anoterhost/$0


<= /div>


On Thu, = Jun 12, 2014 at 12:40 PM, Girish G <girish.vaikom@gmail.com><= /span> wrote:
Hi,
I am trying = to get a regex_remap to remap all the js files to a different port.

My remap.config file has
<= div style=3D"font-family:arial,helvetica,sans-serif">
map / http://l= ocalhost:8080 @plugin=3Dregex_remap.so @pparam=3Dmaps.reg

<= span dir=3D"ltr">and my maps.reg has

However, I am seein= g the following in the diags logs.

[Jun 12 12:35:31.328] Serv= er {0x2ba3200a8240} WARNING: Failed to create new instance for plugin /opt/= trafficserver/libexec/regex_remap.so (not a TS_SUCCESS return)
[Jun 12 12:35:31.328] Server {0x2ba3200a8240} WARNING: Could not add r= ule at line #199; Aborting!
[Jun 12 12:35:31.328] Server {0x2ba32= 00a8240} WARNING: [ReverseProxy] Can't create new remap instance for pl= ugin "/opt/trafficserver/libexec/regex_remap.so" - Unknown plugin= error at line 199
[Jun 12 12:35:31.328] Server {0x2ba3200a8240} WARNING: something faile= d during BuildTable() -- check your remap plugins!
[Jun 12 12:35:= 31.328] Server {0x2ba3200a8240} WARNING: Can not load the remap table, exit= ing out!


What am I doing wrong here?=C2=A0
<= /div>

--
______________________
=E2=80=8BThanks
,
Girish G Pillai



--
______________________
Cheers,
Girish G Pillai=C2=A0

--001a1133c5ae6485d304fba0dd2a--