Technical question about a piece of code in Pro Apache book: rewrite maps

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

 





Page 293 , the author gives an example of nestling rewrite maps

1)RewriteMap giftojpg txt:/usr/local/apache/rewritemaps/gif_to_jpg.map

2)RewriteMap jpgtopng txt:/usr/local/apache/rewritemaps/jpg_to_png.map

3)RewriteRule ^(.*)/([^/]+)\.gif $1/${jpgtopng:${giftojpg:$2|$2}|$2}.jpg

Should the line 3 not be like this:

RewriteRule ^(.*)/([^/]+)\.gif $1/${jpgtopng:${giftojpg:$2|$2}.jpg|$2}.png



[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