这是什么这个HTTP授权重写规则呢? [英] What does this this HTTP Authorization RewriteRule do?
问题描述
我有一个重写递归错误的地方在我的网站,谷歌博特造成的,但我无法找出导致它,因为我的日志级别较低的URL。我提出,但一直没有再次到目前为止发生了。
I have an rewrite recursion error somewhere on my website that Google Bot caused, but I can't find the url that caused it because my Loglevel is low. I raised it but it has not happened again so far.
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
所有的RewriteRules看起来很好对我有[L]标志,除了这一个。
All Rewriterules look fine to me and have the [L] flag, except this one.
我不是很明白。它是来自开源网店系统Magento的。
I can't quite understand it. It is from the open source shop system Magento.
据我可以告诉它什么也不做,但设置环境变量E.但是是不是这样做的一个非常愚蠢的办法吗?你不应该使用setenv如果是这样的目标呢?
As far as I can tell it does nothing but sets the environment variable E. But isn't that a very stupid way of doing that? Shouldn't you use SetEnv if that was the goal?
推荐答案
这行设置环境变量,用户认证字符串的值 - 基本设置一个变量,而不是恒定值。据我所知,SETENV和SetEnvIf之后只允许设置一个环境变量设置为predetermined不变。
This line is setting the environment variable to the value of user authentication string - essentially setting a variable rather than constant value. As far as I know, SetEnv and SetEnvIf only allow you to set an environment variable to a predetermined constant.
该变量被设置实际上是HTTP_AUTHORIZATION,不E.我猜想,这是用户的认证过程的一部分。
The variable being set is actually HTTP_AUTHORIZATION, not E. I would guess this is part of the user authentication process.
这篇关于这是什么这个HTTP授权重写规则呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!