On Tue, May 23, 2017 at 2:10 PM, Ken Mycock <ken.myc...@one-name.org> wrote: [...]
> Hence, we need to allow authentication of either form of number but to strip > leading zeros from the number stored in REMOTE_USER. > > I've tried various combinations of: > RewriteCond %{REMOTE_USER} ^0*([1-9][0-9]+) > RewriteRule ^0*([1-9]+)$ [E=RU:$1] I haven't tested it, but I think RewriteCond %{REMOTE_USER} ^0*([1-9][0-9]+) RewriteRule ^ - [env=REMOTE_USER:%1] might work. The RewriteRule does nothing to the current location, and sets REMOTE_USER from a backreference on the RewriteCond matches. rainer --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org