Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Speeding up Apache RewriteMap script.

by graq (Curate)
on Apr 25, 2007 at 11:12 UTC ( [id://611968]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    http://myurl.com/aa/index.html
    http://myurl.com/aa/bb/index.html
    http://myurl.com/aa/foo/index.html
    http://myurl.com/cc/index.html
    http://myurl.com/cc/dd/index.html
    
  2. or download this
    aa    1
    bb    2
    cc/dd 3
    cc/ee 4
    
  3. or download this
    RewriteMap mapping txt:mapfile.txt
    RewriteRule ^/(.*)/ - [E=TEST_VAL:$1,E=TEST_RESULT:${mapping:$1},NS]
    
  4. or download this
    #!/usr/bin/perl
    
    my $CONFIG_FILE = 'mapfile.txt';
    ...
      }
      return "NULL";
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://611968]
Approved by shigetsu
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-03-29 05:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found