icm/HTTP/file_access

Parameter

icm/HTTP/file_access

Short text

Static file access specification

Parameter Description

This is a vector parameter in the format [parameter name]_[index]. You do not need to enter ascending values for the index; that is, you could, for example, configure only icm/HTTP/file_access_2.

This parameter specifies the URL prefixes for which static file accesses should be set, and the directory in which the static files are stored.

If a page/file below the “virtual_root” is accessed, the “virtual root” is replaced by “document_root” and the handler attempts to read the file from the file system and to return it to the client.

Displaying Directory Contents

You can also define a directory index with this parameter. Use the following options to do this:

– BROWSEDIR: Determines the level of detail in the list.

Possible values:

0: Function is inactive –directory contents are not displayed.
1: Only the file names are displayed.
2: File names are displayed together with their size and date last changed.
– DIRINDEX: Name of file that is to be displayed instead of the directory contents.

– IGNORE: You can use this to restrict the display the contents of the directory. Files that match the template are not listed.

Caching

With the option CACHECTRL, you can specify the cache time in seconds. This is the length of time the ICM temporarily stores data for after it has sent the data to the client. If the same request arrives within this time interval, it is dealt with in the cache. For possible values, see below.

Application Area

Internet Communication Manager

Parameter Unit

Special character string (see below)

Default Value

not activated

Who is permitted to make changes?

Customer

Operating System Restrictions

None

Database System Restrictions

None

Are other parameters affected or dependent?

No

Values allowed

icm/HTTP/file_access = PREFIX=[URL prefix], DOCROOT=[root directory of the files],CACHECTRL=[caching duration in seconds].

If you want to deactivate the caching of file objects, set the value of CACHECTRL to 0 or -1. If you want to cache file objects, set CACHECTRL to a positive numerical value in seconds. For example, CACHECTRL=+7200 means that file objects are to be cached for two hours. The default value for CACHECTRL is +3600. For example, icm/HTTP/file_access_0 = PREFIX=/docs/, DOCROOT=/tmp/documents

You May Also Like

Leave a Reply?