perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Cumming <David.Cumm...@epa.qld.gov.au>
Subject Handler Concept / Question
Date Fri, 09 Aug 2002 05:17:00 GMT
The basic concept I want to accomplish is to allow for static and dynamic c=
ontent to be accessed from any url and be transparent to the visitor.

i.e
publish a static page called /foo/bar.htm
have a dynamic page called /foo/foobar.htm

I imagine there are a couple of different ways to do this, such as:

* Set the dynamic page script as the 404 handler, then all it does is deter=
mine if the content can be displayed from a database.

OR

* Set ALL requests to filter through my handler, do lookup_uri / lookup_fil=
e on it and either return the static content (somehow) or return a dynamic =
page.


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?

If I do set my script to answer all requests, how do I tell the webserver t=
o show the static content that exists under the requested url?

All comments welcome.

Dave

David Cumming
Webmaster
Corporate Affairs
Environmental Protection Agency
+61 7 3247 3274

www.env.qld.gov.au


Mime
View raw message