What do you think? On Wednesday, April 10, 2013 7:51:01 AM UTC+2, Garito wrote: > > No is not the same rewrite rule You've seen in the other thread > > This is the scenario: > > I have a unique wsgi app that serves all the sites like: > > Clients > Client1 > Site1 > Site2 > Client2 > Client3 > > I want to have a different domain for Site1 and Site2 and a redirection to > the proper site > > So domain1.com points to /Clients/Client1/Site1 and domain2.com points to > /Clients/Client1/Site2 > > When I ask for domain1.com/The/Rest/Of/The/Path and the wsgi app will > recive /Clients/Client1/Site1/The/Rest/Of/The/Path > > The wsgi app has a function that generate the URLs. Without the > redirection (asking to the main domain who points to /) it generates the > URLs correctly but with the redirection it doesn't because I don't have any > reference to the actual user petition and this is why I'm asking that > > That make sense? > > On Wednesday, April 10, 2013 7:10:49 AM UTC+2, Graham Dumpleton wrote: >> >> 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.
