Oracle iPlanet Web Server 7.0.9 Administrator's Configuration File Reference


The force-type function assigns a type to requests that do not already have a MIME type. This function is used to specify a default object type.

Ensure that the directive that calls this function comes last in the list of ObjectType directives, so that all other ObjectType directives have a chance to set the MIME type. If a directive sets an attribute and later directives try to set that attribute to something else, the first setting is used and the subsequent settings are ignored.


The following table describes parameters for the force-type function.

Table 7–46 force-type Parameters




(Optional) Type assigned to a matching request (the Content-Type header).


(Optional) Encoding assigned to a matching request (the Content-Encoding header).


(Optional) Language assigned to a matching request (the Content-Language header).


(Optional) Character set for the magnus-charset parameter in rq->srvhdrs. If a browser sends the Accept-Charset header or its User-Agent is Mozilla/1.1 or newer, then append “; charset=charset” to Content-Type, where charset is the value of the magnus-charset parameter in rq->srvhdrs.


(Optional) Common to all obj.conf functions. Adds a bucket to monitor performance. For more information, see The bucket Parameter.


ObjectType fn="force-type" type="text/plain"

ObjectType fn="force-type" lang="en_US"

See Also