Hi,
I have a module called Application that pretty much acts as a dispatcher and handles the root URI of my application.
The problem is the images that I would like to put under the same URI path, but can't do because I don't know how to return the request back to Apache from Application when the request is for an image.
In other words, I would like to have:
<Location /> SetHandler perl-script PerlResponseHandler MCAM::Application </Location>
and the URI for images be /images/. When Application detects that the request is for anything under /images/, it returns the control to Apache to serve the image, otherwise it displatches the request to the right module.
Currently I have the following:
<Location /app> SetHandler perl-script PerlResponseHandler MCAM::Application </Location>
so that the requests for /images/ bypass the Application handler.
On a related note, is it worth using TemplateToolkit's PRE_DEFINE functionality to store an image path, then use it in all the templates for flexibility?
TIA for any input/insights.
Arshavir
-- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html