DeliverImage
Allow image URIs to be defined that make it appear as if they will be
delivered by Interchange itself.
Synopsis
This is a Yes or No directive.
The default is No.
Scope
This directive is only available for use in the local
(catalog.cfg) configuration file.
It will not affect any other website in any way.
This directive will not work in the global
(interchange.cfg) configuration file.
Description
If the requested file is present and the MIME type for the file's
suffix begins with "image/",
then the path will be adjusted to add ImageDir
or ImageDirSecure,
and a HTTP 302 ("Moved temporarily") status will be returned.
The request would then be bounced to the web server,
which would serve the image.
This whole thing happens before Interchange connects to the database
or even opens a session, so it is a reasonably fast operation.
For instance, if the ImageDir is set to "/images/" then the following redirect would occur:
http://www.example.com/cgi-bin/foo/kevin.gif
http://www.example.com/images/kevin.gif
|
|
Note
The images will need to be somewhere under the Apache
DocumentRoot anyway,
so you might as well ignore this directive and set your
image URIs to use the ImageDir and
ImageDirSecure paths directly.
|