Re: Debug third party API library

2011-09-06 Thread Ethan Lai
Hi Steven, Print to stderr instead of stdout, fprintf(stderr, ...), could solve your question. However, I would suggest to use TSError() or TSDebug() with your own tag instead. :) Thanks, -Ethan 2011/9/6 steven liu > Dear All, > > I am now working on a plugin which calls a third party API li

(regex_)redirect after map replacement

2014-03-17 Thread Ethan Lai
Hi, As I know, map rules have type precedence . And current traffic server doesn't map target to replacement recursively. However, after a successful map rule, another (regex_)redirect rule sti

Re: (regex_)redirect after map replacement

2014-03-17 Thread Ethan Lai
Sorry, correct remap.config as below map https://www.example.com/ http://real-www.example.com/ regex_redirect http://([\w\.\-]+)\.example.com/ https://$1.example.com/ Thanks, -Ethan 2014-03-17 22:39 GMT+08:00 Ethan Lai : > Hi, > > As I know, map rules have type > pre