lighttpd 1.4.x
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.3 KiB

Output Compression
Module: mod_compress
:Author: Jan Kneschke
:Date: $Date: 2004/08/29 09:43:49 $
:Revision: $Revision: 1.1 $
a nice, short abstrace about the module
.. meta::
:keywords: lighttpd, compress
.. contents:: Table of Contents
Output compression reduces the network load and can improve the overall
throughput of the webserver.
Only static content is supported up to now.
The server negotiates automaticly which compression method is used.
Supported are gzip, deflate, bzip.
name of the directory where compressed content will be cached
e.g.: ::
compress.cache-dir = "/var/www/cache/"
# even better with virt-hosting
$HTTP["host"] == "" {
compress.cache-dir = "/var/www/cache/"
Default: not set, compress the file for every request
mimetypes where might get compressed
e.g.: ::
compress.filetype = ("text/plain", "text/html")
Default: not set
Compressing Dynamic Content
To compress dynamic content with PHP please enable ::
zlib.output_compression = 1
in the php.ini as PHP provides compression support by itself.