Compress output from your web server to save on bandwidth and improve throughput.
Add mod_compress to server.modules directive of /service/lighttpd/root/lighttpd.conf:
server.modules += ( "mod_compress" )
Add a
compress.cache-dir directive for where compressed files will be stored. This directive can also go in an $HTTP host directive if you want different cache directories per virtual host:
compress.cache-dir = "/tmp/lighttpdcompress/"
Define which mimetypes will be compressed. This example will compress Javascript, plain text, css, and XML files: