On Thu, 1 Oct 2015 15:25:38 +0200
Rainer Jung <[email protected]> wrote:
> Am 01.10.2015 um 15:03 schrieb Jim Jagielski:
> > Doesn't mod_lua do this for you?
>
> But would it be the right tool to use whenever you want to apply a
> s/.../.../?
Some might say so (as some might say mod_perl or mod_rewrite).
> >>>> Header set X-USER "expr=%{REMOTE_USER} =~ s/([^@]*)@.*/$1/"
One further thought there that might be easier to work,
or a staging post on the way to your goal:
<If "expr=%{REMOTE_USER} =~ s/([^@]*)@.*/$1/">
X-USER = $_
# (or whatever backref syntax you prefer).
</If>
--
Nick Kew