> -----Original Message-----
> From: James G Smith [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 01, 2001 1:21 PM
> To: Scott Alexander
> Cc: [EMAIL PROTECTED]
> Subject: Re: Help with Limit in <Perl> 
> 
> 
> 
> Ahh...  Now we get into the interesting bits of mod_perl.  There 
> is a way to change the DocumentRoot on a per-request basis.  Just 
> not a way to do this in the config files.
> 
> Use the function Apache::document_root.  For example:
> 
> my $old_docroot = $r -> document_root($new_docroot);

hi guys... 

  I was following up on this post for the digest, did some testing, and saw
something of interest:

http://localhost/cgi-bin/foo.cgi => output of foo.cgi execution

PerlInitHandler that sets DocumentRoot to /usr/local/apache/cgi-bin
(Directory directive)
http://localhost/foo.cgi => code for foo.cgi

PerlInitHandler that sets DocumentRoot to /usr/local/apache/perl-bin
(Location directive)
http://localhost/foo.cgi => 403


interesting, uh, feature :)

--Geoff

Reply via email to