Can't get lighty to compress static rails files

Hi there,

I posted this in the lighttpd forum a few days ago, but didn’t get any

I’ve been trying to get lighty to compress my html, css, and javascript
using mod_compress. My config (see below) works perfectly for files
served directly (out of a filesystem directory).

However, no compression is performed for static files from
mongrel-powered rails applications (via mod_proxy). The headers indicate
that the files are served via lighty (Server: lighttpd/1.4.11), whereas
dynamic content is served by mongrel (Server: Mongrel 1.0.1). No
‘Content-Encoding: gzip’ header is set, and content is served

Can anyone help me with this?

My setup is: Debian 3.1, lighttpd 1.4.11, mongrel 1.0.1, rails 1.2.3

Thanks a lot!

Here are the relevant sections of my config file:

server.modules = (
“mod_accesslog” )

$HTTP[“host”] == “” {
proxy.balance = “fair”
proxy.server = ( “/” =>
( ( “host” => “”, “port” => 9000 )
) )

compress.filetype = (“text/plain”, “text/html”, “text/css”,