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.


File

srm.conf

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.


Reference

See HTTP/1.0 Section 3.5 Content Codings

[Back] Return to Resource Configuration File Overview


NCSA HTTPd Development Team / httpd@ncsa.uiuc.edu / Last Modified 7-12-95