Re: Third post. PLease help. PerlHandler configuration question.
On Mon, 9 Oct 2000, Todd Chapman wrote: > 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? Either put it under your docroot or use the standard Alias stuff: Alias /perl/ /home/httpd/perl/ See http://thingy.kcilink.com/modperlguide/config/Alias_Configurations.html for more. - Perrin
Re: Third post. PLease help. PerlHandler configuration question.
Thanks. It seems like I would want to write a PerlTransHandler. However I don't want to change the filename until after the authorization phase. Can I change the uri to filename mapping at the end of the authorization phase but before the content handler phase? Thanks. -Todd On Mon, 9 Oct 2000, Tom Brown wrote: > > > > 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? > > mod_rewrite, or write your own URL -> file mapping utility that ties into > an early request phase > > > > > 2. Would I have to locate 'cgifile' in the document tree or could it be > > located anywhere accessible by the httpd process? > > anywhere... > > > > > Thanks! > > > > -Todd > > > > > > > > -- > [EMAIL PROTECTED] | Drive thy business, or it will drive thee. > http://BareMetal.com/ | - Benjamin Franklin > web hosting since '95 | >
Re: Third post. PLease help. PerlHandler configuration question.
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: > > >SetHandler perl-script >PerlHandler Apache::Registry > > > ? > > 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 > > ? > > (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 >
Third post. PLease help. PerlHandler configuration question.
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