That only solves half the problem. Since it is a virtual directory, how will Apache::Registry know where 'cgifile' really exists so it can run it? For example: http://www.mydoamin.com/dirA/dirB/cgifile dirA and dirB don't really exist. If 'cgifile' is stored somewhere else how will Apache::Registry know where to find it? Thanks. -Todd On Mon, 9 Oct 2000, Richard Dice wrote: > Todd: > > This seems fairly straightforward. Have you not just tried: > > <Location ~ /cgifile$/> > SetHandler perl-script > PerlHandler Apache::Registry > </Location> > > ? > > Just because it's in a virtual directory, it's a virtual URI/URL, etc., > doesn't mean that Location isn't the correct directive. "Location" > means a match on the URI requested by the web client. I just put > a pattern match in there saying "if the requested URI ends with 'cgifile', > then handle with Apache::Registry". > > This isn't a perfect location matching pattern, as this will work also on > http://www.yourdomain.com/thisisnotacgifile > but I can leave it to you to spruce it up. Maybe try > <Location ~ /.*\/cgifile$/> > ? > > (I know that would work with Perl, but the Apache pattern matching > engine might not work exactly the same in this circumstance.) > > If I misunderstood your problem, I'm sorry for not having read closer, > confused you, etc. :-) > > Cheers, > Richard > > Todd Chapman wrote: > > > > I need to get this problem solved for a project I am working on. Any help > > is appreciated. > > > > Thanks. > > > > -Todd > > > > ---------- Forwarded message ---------- > > > > I am servicing requests from a virtual document tree. Most of the time I > > want the request to be serviced by a PerlHandler module I wrote. However, > > if the requested filename is 'cgifile' I would rather have > > Apache::Registry handle the request, but since this is a virtual document > > tree the CGI program 'cgifile' is located in a real directory somewhere > > else. > > > > 1. How would I configure this behavior? > > > > 2. Would I have to locate 'cgifile' in the document tree or could it be > > located anywhere accessible by the httpd process? > > > > Thanks! > > > > -Todd > > -- > ---------------------------------------------------------------------------- > Richard Dice * Personal 514 816 9568 * Fax 514 816 9569 > ShadNet Creator * http://shadnet.shad.ca/ * [EMAIL PROTECTED] > Occasional Writer, HotWired * http://www.hotwired.com/webmonkey/ > "squeeze the world 'til it's small enough to join us heel to toe" > - jesus jones >