Skip to content Skip to sidebar Skip to footer

Multiple Values Rewritemap Prg

I'm not able to pass multiple values through a RewriteMap prg. This is what I have: RewriteMap encrypt 'prg:/bin/python2.7 /var/www/encrypt.py' RewriteRule /secure ${encrypt:%{LA-U

Solution 1:

RewriteMap only takes one key string as a parameter, but you can append multiple things to the key. This is what I ended up with:

RewriteRule /secure http://website.com/${encrypt:%{LA-U:ENV:uid};%{LA-U:ENV:givenname};%{LA-U:ENV:surname};%{LA-U:ENV:email}}

The semicolon act as a separator to be used later to split the string.

Post a Comment for "Multiple Values Rewritemap Prg"