Forum: Rails deployment can't get lighty to compress static rails files

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
972d94620a7594d094d1538af1167aa7?d=identicon&s=25 Ben (Guest)
on 2007-05-24 09:20
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",
This topic is locked and can not be replied to.