Bradley, I tried this apache config and it worked fien. Only issue I found: After uncommenting all logfile lines, I got an error at: <br><br><code class="typocode_default">logs/your_app_deflate_log</code><br><br>I replaced with:
<br><br><code class="typocode_default">logs/your_app_deflate_log deflate<br><br></code>and it worked, but (so far) only compressed HTML files and no javascript or CSS files (Browser: Firefox 1.5.3)<br><div><span class="gmail_quote">
<br>But considering that is took a couple of minutes to get and compile form source apache 2.2.2 and make it work with mongrel, I am more than satisfied with the result. (With my lighty-mongrel setup I didn't get compressing to work at all)
<br><br>regards<br>Roberto<br><br>On 5/19/06, <b class="gmail_sendername">bradley taylor</b> &lt;<a href="mailto:bradley@railsmachine.com">bradley@railsmachine.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hey y'all...<br><br>Give this a try and let me know how it works!<br><br><a href="http://fluxura.com/articles/2006/05/19/apache-for-static-and-mongrel-">http://fluxura.com/articles/2006/05/19/apache-for-static-and-mongrel-
</a><br>for-rails-with-mod_deflate-and-capistrano-support<br><br>Thanks,<br>Bradley Taylor<br><br>------<br>Rails Machine<br>Simplified Ruby on Rails application deployment<br><a href="http://railsmachine.com">http://railsmachine.com
</a><br><br>On May 19, 2006, at 5:45 PM, Zed Shaw wrote:<br><br>&gt; Hi Kyle,<br>&gt;<br>&gt; You'll need a set of mod_rewrite rules to really get this right.&nbsp;&nbsp;I'm<br>&gt; currently writing the apache best practice documentation, so I'll ping
<br>&gt; the list and you specifically when that's working right.<br>&gt;<br>&gt; Zed<br>&gt;<br>&gt; On Fri, 2006-05-19 at 14:38 -0700, Kyle Maxwell wrote:<br>&gt;&gt;&gt; This can be accomplished easily with mod_proxy (assuming only one
<br>&gt;&gt;&gt; rails app&gt; per virtual host, and using Apache 2.2 with<br>&gt;&gt;&gt; mod_proxy_balancer).<br>&gt;&gt; I don't think you read my post.&nbsp;&nbsp;Particularly, the part where I said:<br>&gt;&gt;&gt; Unfortunately, it seems that you have to segregate the static
<br>&gt;&gt;&gt; content in its own&gt; folder.<br>&gt;&gt; To clarify, I was wondering about mixing static and dynamic<br>&gt;&gt; content inthe same folder or folder hierarchy.<br>&gt;&gt;<br>&gt;&gt; -- Kyle Maxwell<br>
&gt;&gt; _______________________________________________<br>&gt;&gt; Mongrel-users mailing list<br>&gt;&gt; <a href="mailto:Mongrel-users@rubyforge.org">Mongrel-users@rubyforge.org</a><br>&gt;&gt; <a href="http://rubyforge.org/mailman/listinfo/mongrel-users">
http://rubyforge.org/mailman/listinfo/mongrel-users</a><br>&gt;<br>&gt; _______________________________________________<br>&gt; Mongrel-users mailing list<br>&gt; <a href="mailto:Mongrel-users@rubyforge.org">Mongrel-users@rubyforge.org
</a><br>&gt; <a href="http://rubyforge.org/mailman/listinfo/mongrel-users">http://rubyforge.org/mailman/listinfo/mongrel-users</a><br><br><br><br><br><br><br>_______________________________________________<br>Mongrel-users mailing list
<br><a href="mailto:Mongrel-users@rubyforge.org">Mongrel-users@rubyforge.org</a><br><a href="http://rubyforge.org/mailman/listinfo/mongrel-users">http://rubyforge.org/mailman/listinfo/mongrel-users</a><br></blockquote></div>
<br><br clear="all"><br>-- <br>Roberto Saccon