There are a few ways to go about this one, but here's the solution
that I'd use.
1) Install a PerlTransHandler that sets the URI to / or whatever
you want to have your PerlHandler work with. Have the transhandler return
DECLINED if $r->uri =~ m:^/images/:o;
2) Install a PerlHandler that builds the response for the web.
The advantage to doing it this way is:
a) this was what apache was designed for (multiple phases)
b) allows other handlers to kick in before you build the response
(such as mod_access)
--
Sean Chittenden <[EMAIL PROTECTED]>
Power tends to corrupt, absolute power corrupts absolutely.
-- Lord Acton
On Wed, 12 Jan 2000, Etienne Pelaprat wrote:
> Date: Wed, 12 Jan 2000 01:50:49 PST
> From: Etienne Pelaprat <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: problems with module at root of web site
>
> Hi,
>
> I have written a perl module that is meant to run at the root of a web
> site (blah.com/, let's say), but there are errors whenever it tries to
> access an image with an absolute URL. For instance, this tag returns a
> broken image:
>
> <img src="/images/logo.gif">
>
> this, I'm guessing, is because it's using in some way or another the
> module I have written, since it's pointing from root. How do I fix
> this? How do I make the module act at the root of the site and not
> have it interfere with absolute URIs like that?
>
> Regards,
>
> Etienne
>