Re: [Resin-interest] Rewriting hostnames across webapps?

2014-01-17 Thread Paul Cowan
On Jan 16, 2014, at 4:32 PM, Rick Mann rm...@latencyzero.com wrote: I'm trying to update a virtual server that runs a handful of webapps in Resin. The old machine was tycho.latencyzero.com and a bunch of DNS entries point to it. The web apps are configured to respond to those varying

Re: [Resin-interest] Rewriting hostnames across webapps?

2014-01-17 Thread Rick Mann
On Jan 17, 2014, at 06:05 , Paul Cowan co...@caucho.com wrote: On Jan 16, 2014, at 4:32 PM, Rick Mann rm...@latencyzero.com wrote: I'm trying to update a virtual server that runs a handful of webapps in Resin. The old machine was tycho.latencyzero.com and a bunch of DNS entries point

Re: [Resin-interest] Rewriting hostnames across webapps?

2014-01-17 Thread Chris Pratt
Wouldn't adding (stage\.)? to each host-alias-regexp and changing the host-name to regexp allow it to work as you want it? For example: host regexp=(stage\.)?latencyzero.com root-directory=/lz/var/www/ com/latencyzero host-alias-regexp^tycho.(stage\.)?latencyzero.com[\.]?$/host-

Re: [Resin-interest] Rewriting hostnames across webapps?

2014-01-17 Thread Rick Mann
Yep, I think it would. The problem is, what if I want a more complex transformation next time? Or just a different string other than stage inserted? It's okay, this works well enough for me now. On Jan 17, 2014, at 15:24 , Chris Pratt thechrispr...@gmail.com wrote: Wouldn't adding (stage\.)?

Re: [Resin-interest] rewriting...

2007-09-08 Thread Jan Kriesten
hi scott, That's odd. It looks like we're not handling the query string portion. I've just added a bug report at http://bugs.caucho.com/ view.php?id=1997 i didn't mean to report a bug. :-) i need some example how to do such rewriting with caucho's rewrite-dispatch, especially how to

Re: [Resin-interest] rewriting...

2007-09-08 Thread Joe Dane
Take this, coming from someone who has used mod_rewrite quite a bit and rewrite-dispatch not at all, for what it's worth. There is no way you're going to be able to use resin's rewriting as a replacement for mod_rewrite. mod_rewrite is very nearly a little programming language in itself,

Re: [Resin-interest] rewriting...

2007-09-07 Thread Jan Kriesten
why using an example url when not using it... ;-) suppose the user calls a url like http://www.myservice.com/en/about/company/?page-id=2 the effective request after applying the rules would be /index.jsp?pathinfo=/en/about/company/page-id=2 regards, --- jan.

Re: [Resin-interest] rewriting...

2007-09-07 Thread Jan Kriesten
hi scott, I can't quite see what's it's supposed to do. hehe - seems like you never fiddled with apache rewrite-rules. ;-) but, here we go. suppose the user calls a url like http://www.myservice.com/en/about/company/?page-id=2 RewriteCond checks if condition is matched, so the rules at the

Re: [Resin-interest] rewriting...

2007-09-07 Thread Scott Ferguson
On Sep 7, 2007, at 12:24 AM, Jan Kriesten wrote: why using an example url when not using it... ;-) suppose the user calls a url like http://www.myservice.com/en/about/company/?page-id=2 the effective request after applying the rules would be

Re: [Resin-interest] rewriting...

2007-09-06 Thread Scott Ferguson
On Sep 6, 2007, at 12:27 AM, Jan Kriesten wrote: hi, i'm coming from apache and want to change to resin completely since there is no need for this intermediate any more. the only thing i haven't figured out yet is how to use resin's rewrite-dispatch. we use apache's rewrite-rules to