Re: How to set environment variable from RewriteMap? (was Re: mod_rewrite E flag does not set env. variable)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2008-03-11 at 14:22 +0100, Thorsten Scherler wrote:
> On Tue, 2008-03-11 at 13:20 +0100, Krist van Besien wrote:
> > On Tue, Mar 11, 2008 at 12:29 PM, Thorsten Scherler
> > <thorsten.scherler.ext@xxxxxxxxxxxxxxxxxxx> wrote:
...
> > Now, what is not entirely clear is what you are trying to do. You want
> > to look something up in a map and compare it with the requested URL,
> > right? 
> 
> Totally.
> 
> > That is going to be complicated. 
> 
> hehe, yeah, I started to notice. ;) 
> Thanks for sticking with me.

In the end the solution have been very easy.

In my very last match I needed to implement the setting of the
environment variable like follows:

RewriteRule      ^(.*)    %{DOCUMENT_ROOT}$1 [E=REWRITEMAP_RESULT:
${portadaboja:boletin},L]

Now I can compare the REWRITEMAP_RESULT with the REQUEST_URI in my
SSI. :)

Thank you very much Krist for your help.

salu2
-- 
Thorsten Scherler                                 thorsten.at.apache.org
Open Source Java                      consulting, training and solutions


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux