~ubuntu-branches/ubuntu/natty/lighttpd/natty

« back to all changes in this revision

Viewing changes to doc/compress.txt

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Marek
  • Date: 2005-11-26 11:48:51 UTC
  • Revision ID: james.westby@ubuntu.com-20051126114851-76t9q0rrwbzjnt2t
Tags: upstream-1.4.8
ImportĀ upstreamĀ versionĀ 1.4.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
==================
 
2
Output Compression
 
3
==================
 
4
 
 
5
--------------------
 
6
Module: mod_compress
 
7
--------------------
 
8
 
 
9
:Author: Jan Kneschke
 
10
:Date: $Date: 2004/08/29 09:43:49 $
 
11
:Revision: $Revision: 1.1 $
 
12
 
 
13
:abstract:
 
14
  a nice, short abstrace about the module
 
15
  
 
16
.. meta::
 
17
  :keywords: lighttpd, compress
 
18
  
 
19
.. contents:: Table of Contents
 
20
 
 
21
Description
 
22
===========
 
23
 
 
24
Output compression reduces the network load and can improve the overall
 
25
throughput of the webserver. 
 
26
 
 
27
Only static content is supported up to now.
 
28
 
 
29
The server negotiates automaticly which compression method is used.
 
30
Supported are gzip, deflate, bzip.
 
31
 
 
32
Options
 
33
=======
 
34
 
 
35
compress.cache-dir
 
36
  name of the directory where compressed content will be cached
 
37
 
 
38
  e.g.: ::
 
39
  
 
40
    compress.cache-dir = "/var/www/cache/"
 
41
    
 
42
    # even better with virt-hosting
 
43
    $HTTP["host"] == "docs.example.org" {
 
44
      compress.cache-dir = "/var/www/cache/docs.example.org/"
 
45
    }
 
46
    
 
47
  Default: not set, compress the file for every request
 
48
 
 
49
compress.filetype
 
50
  mimetypes where might get compressed
 
51
  
 
52
  e.g.: ::
 
53
  
 
54
    compress.filetype           = ("text/plain", "text/html")
 
55
 
 
56
  Default: not set
 
57
 
 
58
 
 
59
Compressing Dynamic Content
 
60
===========================
 
61
 
 
62
To compress dynamic content with PHP please enable ::
 
63
 
 
64
  zlib.output_compression = 1
 
65
  
 
66
in the php.ini as PHP provides compression support by itself.