Hi Jonathan, two examples which I think are right, comments please folks!

Jonathan Vanasco wrote:

i need to get the following urls mapped onto a handler in httpd.conf
    /
    /index
    /index.*


Option 1:

   <Location ~ "^/(index(\..*)?)?$">
      SetHandler perl-script
      PerlResponseHandler My::Module
   </Location>

Option 2:

sub handler {  my $r=shift;
   $r->uri()=~/^/(index(\..*)?)?$/ and return Apache2::Const::DECLINED;
   ... code here...
}

John

Reply via email to