Yup that fixed it, setting the handler via $r->handler('cgi-script') in a FixupHandler works. The table in the mod_perl cookbook (pg452) says is all. I must have overlooked that bit of information while I was banging my head on the my desk trying to get this to work. Thanks for the help and the book too ;)
-Carlos > > From: Geoffrey Young <[EMAIL PROTECTED]> > Date: 2002/10/03 Thu AM 07:11:29 CDT > To: Carlos Ramirez <[EMAIL PROTECTED]> > CC: [EMAIL PROTECTED] > Subject: Re: Defaulting to default-handler from custom handler > > > > > > All four cases result in the Perl code being displayed instead of the > > script being executed? If a location is defined as a ScriptAlias, then > > is the default-handler == perl-script? and would returning DECLINED > > result in mod_cgi handling the request? What am I doing wrong? > > perl-script is mod_perl > > default-handler is the Apache default (to just send the document) > > cgi-script is mod_cgi > > > so, if you want mod_cgi to do it, try > > $r->handler('cgi-script'); > return DECLINED; > > but I couldn't get that to work from a Registry script, since I > suspect that it's too late to alter the course of the request via > $r->handler(). a PerlFixupHandler is generally a good place to alter > $r->handler() to perhaps you can put your logic there instead. > > we talk about $r->handler() a bit in chapter 14 in the Cookbook, and > 14.1 has a list of modules and their corresponding handler name. > > HTH > > --Geoff > > >