Name

AddType

Synopsis

AddType mime-type extension

Description

[server config, or within <VirtualHost> or <Directory>, or .htaccess]

Specifies a MIME type and subtype to be associated with certain file extensions. For example, if you want to serve a Microsoft Word document:

AddType application/msword .doc

AddType directives overrides any extension-to-type mappings in your mime.types file.

(All)

Get Webmaster in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.