AddEncoding directive


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.


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.


There are no default encodings.


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

NCSA httdp Development Team