Sorry, misread your comment.

Yes, E=??? assignment in mod_rewrite should work.

The issue may though be in which request context it is set. If you are
setting it and then doing a redirect in same rewrite rules, the variable
will likely be set in the parent request and not the sub request as you
want. I know of no way to have mod_rewrite set the variable in the sub
request when redirecting.

Lets go back to the start. Can you explain the original problem you are
trying to solve by using the redirects. If this was the rewrite rules from
your other discussion, show them again and explain again why they are
required. Then also why you need to know the original PATH_INFO from the
parent request in the sub request.

There may well be a different way of doing what you want, but right now I
don't understand the problem you are trying to solve which made you ask the
question.

Graham


On 10 April 2013 14:38, Garito <[email protected]> wrote:

> Well, in theory E will set an environment variable
>
> I try SetEnv Testing ATest and appears in the environ but with E it
> doesn't
>
> On Wednesday, April 10, 2013 6:15:09 AM UTC+2, Graham Dumpleton wrote:
>
>> What is passed is what mod_rewrite sets and is out of the control of
>> mod_wsgi. if you don't see a REDIRECT_PATH_INFO then no such thing is
>> available.
>>
>> Graham
>>
>>
>> On 10 April 2013 14:09, Garito <[email protected]> wrote:
>>
>>> Any chance that [E=ORIGINAL_PATH_INFO:/$1] work?
>>>
>>>
>>> On Wednesday, April 10, 2013 5:56:40 AM UTC+2, Graham Dumpleton wrote:
>>>
>>>> Not everything. A few REDIRECT_ prefixed variables will exist in the
>>>> WSGI environ dictionary, but beyond that nothing is available.
>>>>
>>>> Graham
>>>>
>>>>
>>>>  On 10 April 2013 12:16, Garito <[email protected]> wrote:
>>>>
>>>>> Hi!
>>>>> Is there a way to know the original request before mod_rewrite changes
>>>>> it?
>>>>>
>>>>> Thanks!
>>>>>
>>>>>  --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "modwsgi" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to modwsgi+u...@**googlegroups.com.
>>>>> To post to this group, send email to [email protected].
>>>>>
>>>>> Visit this group at 
>>>>> http://groups.google.com/**group**/modwsgi?hl=en<http://groups.google.com/group/modwsgi?hl=en>
>>>>> .
>>>>> For more options, visit 
>>>>> https://groups.google.com/**grou**ps/opt_out<https://groups.google.com/groups/opt_out>
>>>>> .
>>>>>
>>>>>
>>>>>
>>>>
>>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "modwsgi" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to modwsgi+u...@**googlegroups.com.
>>> To post to this group, send email to [email protected].
>>> Visit this group at 
>>> http://groups.google.com/**group/modwsgi?hl=en<http://groups.google.com/group/modwsgi?hl=en>
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>> .
>>>
>>>
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/modwsgi?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to