Would RewriteMap functionality be the type of feature that could be added for a bounty? If so, what are the chances it'd make it into the main branch?
Thanks, Michael McGlothlin On Sat, Dec 11, 2010 at 3:18 AM, Alvaro Lopez Ortega <[email protected]> wrote: > On 11/12/2010, at 01:56, Michael McGlothlin wrote: > >> Is there an equivalent of Apache's RewriteMap for Cherokee? The >> situation is I have a program that runs nightly and generates a map of >> FRIENDLY NAME => ID NUMBER rewrites based on a field in a third party >> database. There are tens of thousands of these and they can change at >> any time so it isn't practical to try to map these manually. Using an >> external program to parse and internally redirect each request, of >> which there are many per second, sounds slow and buggy. > > I'm afraid there is no direct equivalent the of 'RewriteMap'. > > As a workaround, you could embed all those rules in a new cherokee.conf file > and perform a graceful restart. There would not be lost/broken connections > and the behavior could be the same. > >> I've been a bit surprised that Cherokee seems to be quite slow when >> acting as a reverse proxy and seems especially slow when dealing with >> these redirects happening on the source web server. Much slower than >> it is directly connecting to the source. Is there anything I'm >> probably doing wrong? > > Well, a proxy will always introduce some delay. Cherokee's reverse proxy is > really fast (it supports keep-alive connections with its back-end servers), > although it does not cache content yet. > > What kind of redirections are those? Could you please paste the > request/response from the back-end server? > > Cheers! _______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
