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\.)?

[Resin-interest] Rewriting hostnames across webapps?

2014-01-16 Thread Rick Mann
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 hostnames. The new machine temporarily has the name stage.latencyzero.com. I