Hi there,

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

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
uncompressed.

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!
Ben


Here are the relevant sections of my config file:

---
server.modules              = (
                                "mod_redirect",
                                "mod_proxy",
                                "mod_access",
                                "mod_fastcgi",
                                "mod_rewrite",
                                "mod_compress",
                                "mod_accesslog" )


$HTTP["host"] == "foo.example.com" {
  proxy.balance = "fair"
  proxy.server = ( "/" =>
    ( ( "host" => "127.0.0.1", "port" => 9000 )
    ) )
}

compress.filetype = ("text/plain", "text/html", "text/css",
"text/javascript")
---
EOF

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Deploying Rails" group.
To post to this group, send email to rubyonrails-deployment@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-deployment?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to