List Info

Thread: Apache + DEFLATE : Does not work




Apache + DEFLATE : Does not work
user name
2007-11-06 09:33:52
Hello ;
    We have Apache serving our static contents and Jboss to serve the dynamic data / transactions.
We have changed configuration in Apache so that I can use html/xml/java script compression using mod_deflate.
But the problem is I am not able to receive compressed contents in browser. I have verified this in mozilla (2.0.0.9) using Firebug addon.
Can you please help me in this.

    Here is the sample configuration

<VirtualHost X.Y.Z.W:80
 &nbsp; &nbsp; ServerAdmin preet
...aftek.com&nbsp;
 &nbsp; &nbsp; DocumentRoot "/usr/java/jboss-4.0.3SP1/server/default/deploy/sample.ear/sample.war"&nbsp;
 &nbsp; &nbsp;ServerName sample.aftek.com

 &nbsp; &nbsp; ErrorLog logs/sample-error_log 
 &nbsp; &nbsp; TransferLog logs/sample-access_log

 &nbsp; &nbsp; JkOptions     +ForwardKeySize +ForwardURICompat -ForwardDirectories

 JkMount /sample worker1
 JkMount /sample/* worker1

 JkUnMount /sample/images/* worker1
 JkUnMount /sample/css/* worker1
 JkUnMount /sample/js/* worker1

 DeflateFilterNote Input instream
 DeflateFilterNote Output outstream
 DeflateFilterNote Ratio ratio

 LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%) "%{User- agent}i"' deflate
 CustomLog logs/deflate_log deflate

 <Location /sample>;
  AddOutputFilterByType DEFLATE text/html
  AddOutputFilterByType DEFLATE text/xml
  AddOutputFilterByType DEFLATE text/css
  AddOutputFilterByType DEFLATE text/javascript
  AddOutputFilterByType DEFLATE application/x-javascript
 <;/Location&gt;
</VirtualHost&gt;

Version Info
Jboss:             jboss-4.0.3SP1
Apache:          httpd-2.0.52-28
Mod_jk:           mod_jk-1.2.15-1

Also
    I suspect there is something going wrong in response headers :
"Vary : Accept-Encoding"

Thanks for help in advance.

Thanks & Best Regards
~Preetam

Re: Apache + DEFLATE : Does not work
user name
2007-11-06 15:17:09
On Nov 6, 2007 10:33 AM, Preetam Palwe <preetampaftek.com> wrote:
>
>
> Hello
>     We have Apache serving our static contents and
Jboss to serve the
> dynamic data / transactions.
> We have changed configuration in Apache so that I can
use html/xml/java
> script compression using mod_deflate.
> But the problem is I am not able to receive compressed
contents in browser.

AddOutputFilterByType isn't triggered for proxied requests
on 2.0.x; a
note appears in the documentation.


-- 
Eric Covener
covenergmail.com

------------------------------------------------------------
---------
The official User-To-User support forum of the Apache HTTP
Server Project.
See <URL:http://htt
pd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribehttpd.apache.org
   "   from the digest: users-digest-unsubscribehttpd.apache.org
For additional commands, e-mail: users-helphttpd.apache.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )