# creator : Tom Regner # created : Mon 13 Jan 2003 01:47:26 PM CET # version : $Id: apache_rw_cfg.pm,v 1.3 2003/03/07 17:33:35 tom Exp $ # copyright : (c) 2002, www.tomsdiner.org # # config for cms_nl_ # "use"d in the rewrite-map # # package apache_rw_cfg; require Exporter; use vars qw($conf); @ISA = qw(Exporter); @EXPORT_OK = qw($conf); use strict; # # allowed parameter configurations # my $nl_params = { 'p1' => { name => 'param1', # substitute name regexp => qr/^val1$|^val2$/, # passed value /must/ match this }, 'p2' => { name => 'param1', # substitute name regexp => qr/^[a-zA-Z0-9]{16}$/, # passed value /must/ match this }, }; # # redirect configuration # $conf = { '/path1' => { # source url => '/real/location/of/path1', # target-url params => $nl_params, # allowed params }, '/path1/t1' => { url => '/real/location/of/somwhere/else, params => $nl_params, }, };