AddEncoding directive


Purpose

Allows you to specify an encoding type for a document with a given filename extension.

In order to serve encoded documents to clients, the client must support the given encoding method, as well as the HTTP encoding extension.


Syntax

AddEncoding type extension

type is the encoding type for the document.

extension is the filename extension to map to this encoding.

You may use as many AddEncoding directives as you wish.


Default

There are no default encodings.


Example

AddEncoding x-gzip gz

This would cause any file ending in .gz to be marked as encoded using the x-gzip encoding method.


Return to Resource Configuration File Overview

httpd@ncsa.uiuc.edu