I was thinking of a similar thing:
<Location "/query"> SetHandler perl-script Listen 12200 PerlResponseHandler Handler </Location> <Location "/query"> SetHandler perl-script PerlResponseHandler Handler2 Listen 12300 </Location> so if i call http://../query:12200 i call Handler and if i call http://../query:12300 i call Handler2