Try something like this in remap.config: regex_map http://([a-z\-0-9\.]+) http://webserver.internal:80/
Unless I’m not following what it is you are trying to accomplish here by using the maps.reg. Brad Brad Williamson Sr. Systems Engineer, WDPRO Disney Technology Solutions and Services From: Vladyslav Bachynskyi [mailto:[email protected]] Sent: Monday, December 03, 2012 1:49 PM To: [email protected] Subject: Re: Unable to load regex_remap.so ATS 3.3.1 Hi, for testing I've added the string from documentation: map http://a.com http://b.com @plugin=regex_remap.so @pparam=maps.reg Now, I'm getting another warning: [Dec 3 20:43:49.281] Server {0x2b647f7b92e0} WARNING: Failed to create new instance for plugin /opt/trafficserver-3.3/libexec/trafficserver/regex_remap.so (not a TS_SUCCESS return) [Dec 3 20:43:49.281] Server {0x2b647f7b92e0} WARNING: Could not add rule at line #172; Aborting! [Dec 3 20:43:49.281] Server {0x2b647f7b92e0} WARNING: [ReverseProxy] Can't create new remap instance for plugin "/opt/trafficserver-3.3/libexec/trafficserver/regex_remap.so" - Unknown plugin error at line 172 [Dec 3 20:43:49.281] Server {0x2b647f7b92e0} WARNING: something failed during BuildTable() -- check your remap plugins! [Dec 3 20:43:49.281] Server {0x2b647f7b92e0} WARNING: Can not load the remap table, exiting out! What I'm doing wrong? On Mon, Dec 3, 2012 at 8:38 PM, Igor Galić <[email protected]<mailto:[email protected]>> wrote: ----- Original Message ----- > On 12/3/12 7:56 AM, Vladyslav Bachynskyi wrote: > > Hi, > > > > Trying to load plugin regex_remap.so, and getting ERROR: > > > > [Dec 3 14:35:03.922] Server {0x2aeacc9ba2e0} NOTE: logging > > initialized[15], logging_mode = 3 > > [Dec 3 14:35:03.927] Server {0x2aeacc9ba2e0} NOTE: loading plugin > > '/opt/trafficserver-3.3/libexec/trafficserver/header_filter.so' > > [Dec 3 14:35:03.927] Server {0x2aeacc9ba2e0} NOTE: loading plugin > > '/opt/trafficserver-3.3/libexec/trafficserver/regex_remap.so' > > [Dec 3 14:35:03.928] Server {0x2aeacc9ba2e0} ERROR: unable to find > > TSPluginInit function > > '/opt/trafficserver-3.3/libexec/trafficserver/regex_remap.so': > > /opt/trafficserver-3.3/libexec/trafficserver/regex_remap.so: > > undefined > > symbol: TSPluginInit > > The regex_remap plugin is a pure "remap" plugin, it can only be used > from remap.config. As such, you must not add it to the plugins.config > config file. I wonder if there's a more graceful way from the plugin to inform us of this - also: Doe our documentation say that? i > -- Lief > > -- Igor Galić Tel: +43 (0) 664 886 22 883<tel:%2B43%20%280%29%20664%20886%2022%20883> Mail: [email protected]<mailto:[email protected]> URL: http://brainsware.org/ GPG: 6880 4155 74BD FD7C B515 2EA5 4B1D 9E08 A097 C9AE
