diff options
Diffstat (limited to 'doc/config/conf.d/deflate.conf')
-rw-r--r-- | doc/config/conf.d/deflate.conf | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/config/conf.d/deflate.conf b/doc/config/conf.d/deflate.conf new file mode 100644 index 00000000..4f3913f7 --- /dev/null +++ b/doc/config/conf.d/deflate.conf @@ -0,0 +1,31 @@ +####################################################################### +## +## Output Compression +## -------------------- +## +## See https://redmine.lighttpd.net/projects/lighttpd/wiki/docs_moddeflate +## +server.modules += ( "mod_deflate" ) + +## +## where should the compressed files be cached? +## see the base config for the declaration of the variable. +## +## This directory should be changed per vhost otherwise you can +## run into trouble with overlapping filenames +## +deflate.cache-dir = cache_dir + "/compress" + +## +## FileTypes to compress. +## +deflate.filetype = ("text/plain", "text/html") + +## +## Maximum response size that will be compressed. +## Default is 0, which uses internal default of 128 MB as limit. +## +#deflate.max-compress-size = 0 + +## +####################################################################### |