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.


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.


Return to Resource Configuration File Overview

NCSA httpd Development Team

httpd@ncsa.uiuc.edu