Re: [users@httpd] RE: case insensitive rewrite rules and nested mapping

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

 



Chen, Charles wrote:
here, "/NeWs" first mapped to all upper case "NEWS" and then used to
lookup another map in which I have a line like this:
# my text map file

NEWS  /some/other/url

What about using a condition to get the value:

RewriteMap somemap txt:somemap.map
RewriteMap toupper int:toupper
RewriteCond ${toupper:$1} ^(.*)
RewriteRule ^/(NEWS)$ http://realserver/${somemap:%1} [NC,P]

You'd like to pass the request to mod_proxy, right?

---------------------------------------------------------------------
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