> hi,
> 
> I was wondering how to map PerlTransHandler only for certain type of files.
> ( I'm doing URI rewriting not URI->filename translation ?!!)
> 
> Something like :
> <Location>
>  <Files ~ "xml$">
>    PerlTransHandler  Apache::MyHandler
>  </Files>
> </Location>
> 
> Yes I know this is wrong...can this be done in some other way ?

Yes, it's wrong because the job of the translation phase is precisely to
translate from url to file, therefore it cannot operate on files!

PerlTransHandler Apache::MyHandler
...
sub handler
{
  my $r = shift;
  return DECLINED unless $r->uri =~ /\.xml$/;
  ...
}
--
Eric

Reply via email to