DefaultType directive


Purpose

If HTTPd can't type a file through normal means, it will type it as DefaultType.


Syntax

DefaultType type/subtype

type/subtype is the MIME-like type.

Only one DefaultType directive should appear in the configuration file.


File

srm.conf

Default

If no DefaultType is present, HTTPd assumes:

DefaultType text/html


Example

DefaultType application/octet-stream

This would cause a file with an unknown extension to be returned as type application/octet-stream.


[Back] Return to Resource Configuration File Overview
NCSA HTTPd Development Team / httpd@ncsa.uiuc.edu / Last Modified 7-12-95