Conditional Request Headers
Module: mod_setenv
Description
The setenv module allows influencing the environment external applications are spawned in and the response headers the server sends to the clients.
Automatic Decompression
If you have a lot text-files compressed with gzip on disk and want that the browser is decompressing them on retrival you can use setenv to inject the Content-Encoding header:
Options
setenv.add-environment
Adds a value to the process environment (aka environment variables) that is passed to the external applications:
setenv.add-response-header
Adds a header to the HTTP response sent to the client:
setenv.add-request-header
Adds a header to the HTTP request that was received from the client ::
http://redmine.lighttpd.net/projects/1/wiki/Docs_ModSetEnv
本文介绍如何利用lighttpd的mod_setenv模块来优化服务器对外部应用程序的支持及响应头信息,通过设置环境变量及添加响应头实现压缩文件的自动解压等功能。
4188

被折叠的 条评论
为什么被折叠?



