[Catalyst] multi-homed application and proxy configuration

Perrin Harkins pharkins at gmail.com
Fri Feb 9 13:17:33 GMT 2007


On 2/9/07, Cédric Bouvier <cbouvi at free.fr> wrote:
> So I'd need to install one Catalyst app that can be reached either as
> /myapp, /myapp/A or /myapp/B. And it should somehow "know" through which
> path it has been accessed (because it's behaviour will be slightly
> different whether it's A or B).

It sounds to me like you want virtual hosts.  You can check the host
header to see which one you're in, or use PerlSetVar inside the
VirtualHost block to set a perl variable indicating which one.

- Perrin



More information about the Catalyst mailing list