[Catalyst] Setting $c->req->{base}

Alessio Bragadini alessio at sevenseas.org
Tue Sep 20 09:29:40 CEST 2005


On Mon, 2005-09-19 at 17:09 -0400, Andy Grundman wrote:

> I think the solution is to check the variable HTTP_X_FORWARDED_HOST (or 
> maybe _SERVER) which on my double-Apache setup appears to contain the 
> frontend hostname.

I don't think it's the best solution, because it addresses a specific
case of a more general problem. For example it doesn't handle the case
where the server on front host runs on yet another port - or it's
running https. The flexible solution IMHO is to add a "base"
configuration option to check against, users who need it will know what
to put there.

> This could be done in a plugin but is probably better handled in the 
> engine layer.

Ok. Is policy of the list to send patches here? I will send you my
proposed patch off-list in the meantime.

-- 
Alessio Bragadini <alessio at sevenseas.org>
Sevenseas.org Hacking Community




More information about the Catalyst mailing list