多个值RewriteMap prg [英] Multiple values RewriteMap prg

查看:116
本文介绍了多个值RewriteMap prg的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法通过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:ENV:email}} [P]

我只能从标头传递一个变量,但不能传递两个以上的变量.任何帮助,我们将不胜感激.

I am able to pass just one variable from the header, but not more than two.Any help would be appreciated it.

谢谢!

推荐答案

RewriteMap仅将一个键字符串作为参数,但是您可以在键上附加多个内容.这就是我最终得到的:

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.

这篇关于多个值RewriteMap prg的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆