trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Girish G <girish.vai...@gmail.com>
Subject Re: regex_remap Can not load the remap table
Date Thu, 12 Jun 2014 10:17:14 GMT
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 <girish.vaikom@gmail.com> 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=regex_remap.so @pparam=maps.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 line
> 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?
>
> --
> ______________________
> ​Thanks
> ,
> Girish G Pillai
>



-- 
______________________
Cheers,
Girish G Pillai

Mime
View raw message