You could do something like a PerlPostReadRequestHandler YourModule and use
the Apache->request object for the uri method. You might suffer some
performance issues if you aren't careful. This calls the module before every
read/post request (including images, etc.).

-Ben

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 09, 2002 8:01 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Handler Concept / Question

> Does anyone have any points of view on whether the script should just
> be a 404 handler or whether I should set a handler to listen to all
> requests and have my script determine what to do, or another way to do
> it?

Those are both fine.  The 404 handler approach will give slightly better
performance for your static pages.
Other ways people handle this include using an extension that is different
for the dynamic URLs (*.phtml or something), or using Location directives
to map specific URLs to handlers.  The latter is a good way to do it if
you have just a few dynamic URLs or if they can all be grouped in a
certain "directory" like /reports/*.
> If I do set my script to answer all requests, how do I tell the
> webserver to show the static content that exists under the requested
> url?

You have to make the default handler pick it up.  I forget the exact
syntax, but there were some examples posted to the mailing list a while
back.
- Perrin

Reply via email to