[Catalyst] PerlSetVar $r->dir_config

Tim Keefer tkeefer at sunflowerbroadband.com
Mon Jul 25 21:54:58 CEST 2005


Yes, However, it's done by using PerlSetVar and $r->dir_config.

I use it this way ...
<Location /myapp>
  PerlSetVar root "/config"
  
  # handler stuff .... 	
</Location>

<Location /myapp/foo>
  PerlSetVar "/config2"
</Location>

<Location /myapp/bar>

  # This inherits the SetVar value of "/config" 
  # from /myapp since it's not defined

</Location>

On Mon, 25 Jul 2005 14:44:29 -0500
samwyse <samwyse at gmail.com> wrote:

> On 7/25/05, Tim Keefer <tkeefer at sunflowerbroadband.com> wrote:
> > I see. However it doesn't seem to allow me to set environment
> > variables per <Location>.
> [...]
> > Can Catalyst support this behavior?
> 
> I'm not so sure that Apache truly supports that behavior.  A search of
> Google indicates some bugs regarding PerlSetEnv and multiple virtual
> hosts, which isn't too surprising since there's only one Perl
> interpreter for all virtual hosts and the main server.  Do you have
> this working in mod_perl outside of Catalyst?
> 
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
> 



More information about the Catalyst mailing list