> I'm wondering why it is impossible?

I am not exactly sure here, but I think this is because a TransHandler
is definitely not allowed inside a <Directory> or <File> container. And
since Apache does not make the distinction between containers (it uses
the constant RSRC_CONF to disallow a directive from being in (all) 
containers) <Location> is the innocent victim here.

> For now I have implemented that particular case by

Wouldn't this be simpler?

|PerlTransHandler MyPackage::transhandler
|<Location ...>
|  PerlSetVar SkipTransHandler 1
|</Location>
|
|package MyPackage;
|
|sub transhandler {
|...
|return DECLINED if $r->dir_config('SkipTransHandler');
|...
|}

--Frank

Reply via email to