Set up output compression for HTTP Server (powered by Apache)

This topic provides information about how to set up output compression for HTTP Server (powered by Apache) with the IBM® Web Administration for i5/OS™ interface.

Important: Information for this topic supports the latest PTF levels for HTTP Server for i5/OS . It is recommended that you install the latest PTFs to upgrade to the latest level of the HTTP Server for i5/OS. Some of the topics documented here are not available prior to this update. See http://www.ibm.com/servers/eserver/iseries/software/http/services/service.htm Link outside Information Center for more information.

In order to set up output compression, a filter must be inserted in the output filter chain. This is done using the SetOutputFilter directive. See File compression for HTTP Server (powered by Apache) for more information.

To set up output compression, do the following:

  1. Click the Manage tab.
  2. Click the HTTP Servers subtab.
  3. Select your HTTP Server (powered by Apache) from the Server list.
  4. Select the context you want to work with from the Server area list.
  5. Expand Server Properties.
  6. Click Compression.
  7. Click the Output Filters tab.
  8. Add an output filter:

    There are two types of output filters. The first output filter type only requires a file extension and a filter name. The second output filter type requires a MIME type and filter name. For both output filter types, click Add under the appropriate table and specify the file extension, MIME type, and filter name.

  9. Click Continue.
  10. Click Add under the Set output filter table.
  11. Specify DEFLATE for the filter name.
  12. Click Apply.

You should now have something like the below example in your configuration.

Example
AddOutputFilterByType DEFLATE text/html
AddOutputFilter DEFLATE .html
SetOutputFilter DEFLATE

See Set up input decompression for HTTP Server (powered by Apache) for more information.