Hi Folks,
I have the following in .htaccess:
########################### Compression########################################
compress text files
AddOutputFilterByType DEFLATE application/ecmascript
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml
#==============================================================================#
I noticed that this worked as expected for static files, but for Lucee
files, it didn’t. I then enabled gzip compression within the Lucee admin
(which did result in gzipped responses), but noticed that some of our
peripheral services (i.e., site health monitor and F5) didn’t work well
with gzipped health check pages. Therefore, I want to be more selective as
to what’s gzipped (or rather, just decare what I *don’t *want gzipped).
While Googling this morning, I saw allusions to configuring web servers to
compress proxied content (e.g., Lucee and Tomcat). If that’s possible, how
do you configure that in Apache?
In case it matters, here are the proxy settings from the virtual host:
############################# mod_proxy ####################################
<Proxy *>
Allow from 127.0.0.1
FR timeout (90s) + Potential FR Queue (60s) + Buffer (5s) = 155
ProxyTimeout 155
ProxyPreserveHost On
ProxyPassMatch ^/(.+.cf[cm])(/.)?$ http://127.0.0.1:8888/$1$2
ProxyPassMatch ^/(.+.cfchart)(/.)?$ http://127.0.0.1:8888/$1$2
ProxyPassMatch ^/(.+.cfml)(/.*)?$ http://127.0.0.1:8888/$1$2
ProxyPassReverse / http://127.0.0.1:8888/
#==========================================================================#
Thanks,
Jamie