rp_abstract_url_serverrp_abstract_url_server
Defined in packages/acs-core/abstract-url-procs.tclSearches through the file system for an appropriate
file to serve, based on $ad_conn(urlv). The algorithm is as follows:
- If the URL specifies a directory but doesn't have a trailing slash,
append a slash to the URL and redirect (just like AOLserver would).
- If the URL specifies a directory and does have a trailing slash,
append "index" to the URL (so we'll search for an index.* file
in the filesystem).
- If the file corresponding to the requested URL exists (probably because the
user provided the extension), just deliver the file.
- Find a file in the file system with the provided URL as the root (i.e.,
some file exists which is the URL plus some extension). Give precedence to
extensions specified in the ExtensionPrecedence parameter in the
abstract-url configuration section (in the order provided).
If such a file exists, deliver it.
- The requested resource doesn't exist - return a 404 Not Found.
This routine should really be part of the request processor.
|