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 09:04 +0100, Krist van Besien wrote:
> On Tue, Mar 11, 2008 at 8:37 AM, Thorsten Scherler
> <thorsten.scherler.ext@xxxxxxxxxxxxxxxxxxx> wrote:
> > On Mon, 2008-03-10 at 14:01 +0100, Krist van Besien wrote:
> 
> >  > If you want to save that information during request processing you can
> >  > use an environment variable, just like you did. If you want to save
> >  > information from one request to another you need another mechanism.
> >
> >  Which mechanism would you suggest?
> 
> Two mechanisms are common for persistence across requests: Cookies,
> and query parameters.

I played around with your suggestions and I am nearly there.

# 1.)
RewriteCond %{REQUEST_URI} ^/boletines/2008/1(.*)

# 2.)
RewriteCond %{REQUEST_URI} ^/${portadaboja:boletin}

One is working fine but it is hardcoded (I did it to test). The 2) is
not working because it seems that ${portadaboja:boletin} is not resolved
if used on the "right" site.

To overcome that problem I took your suggestion and combined it like:
RewriteCond ${portadaboja:boletin}      ^(.+)$
RewriteCond  %{REQUEST_URI} /%1

but that is never got hit.

What I actually trying is to compare the REQUEST_URI with the map entry.
Is this possible and I am just not using it the right way?

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