Apache + DEFLATE : Does not work

This is a discussion on Apache + DEFLATE : Does not work within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hello We have Apache serving our static contents and Jboss to serve the dynamic data / transactions. We have changed configuration ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-06-2007
preetam.palwe@gmail.com
 
Posts: n/a
Default Apache + DEFLATE : Does not work

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>
ServerAdmin preetamp@aftek.com
DocumentRoot "/usr/java/jboss-4.0.3SP1/server/default/deploy/
sample.ear/sample.war"
ServerName sample.aftek.com

ErrorLog logs/sample-error_log
TransferLog logs/sample-access_log


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>
</VirtualHost>

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

  #2 (permalink)  
Old 11-06-2007
preetam.palwe@gmail.com
 
Posts: n/a
Default Re: Apache + DEFLATE : Does not work

To add one more thing
I tested this with mozilla and firebug from outside my organization
(from my home) and to my surprise it working. I am able to see the
reduced size java script (7K instead of 29K)
But it still not working from inside my organization. Am I behind any
proxy?

Thanks Again.
~Preetam


preetam.palwe@gmail.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. 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>
> ServerAdmin preetamp@aftek.com
> DocumentRoot "/usr/java/jboss-4.0.3SP1/server/default/deploy/
> sample.ear/sample.war"
> ServerName sample.aftek.com
>
> ErrorLog logs/sample-error_log
> TransferLog logs/sample-access_log
>
>
> 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>
> </VirtualHost>
>
> 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


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:54 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0