On Friday, 15. October 2004 11:58, Richard Lewis wrote: > Hi there, > > I'm just trying out this AxKit::Plugin::Param::Expr module and was > wondering if there's any way of doing this: > > httpd.conf: > > ... > RewriteRule ^(.*) /$1 [E=SECTION:$1] > ... > PerlAddVar AxParamExpr section SECTION > ... > > i.e., can I pass a (user-defined) Apache environment variable to > AxParamExpr? (Of course, my syntax might not be right....sorry) Should work with:
PerlAddVar AxParamExpr section $ENV{SECTION} remember, the right-hand side is a plain perl expression. If this example doesn't work, you can easily access $r for the env var. -- CU Joerg PGP Public Key at http://ich.bin.kein.hoschi.de/~trouble/public_key.asc PGP Key fingerprint = D34F 57C4 99D8 8F16 E16E 7779 CDDC 41A4 4C48 6F94 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]