AddType directive


Purpose

Allows you to add entries to the server's default typing information and cause an extension to be a certain type. Extensions already defined in the types configuration file may not be over-ruled, but you can add new ones.


Syntax

AddType type/subtype extension

type/subtype is the MIME-like type for the document.

extension is the filename extension to map to this type.

You may use as many AddType directives as you wish.


Default

The default types are in the types configuration file.


Example

AddType text/plain doc

This would cause any file ending in .doc to be served as type text/plain.


Return to Resource Configuration File Overview

httpd@ncsa.uiuc.edu