[Mod_gzip] mod_gzip with mod_ssl (using mod_proxy)

Matthew Claridge mod_gzip@lists.over.net
Mon, 14 Apr 2003 16:56:57 +0100


I've got the mod_gzip with SSL howto and I'm trying to get it to work on
our little RH7.3 box. However, the ssl virtual host doesn't seem to be
forwarding its requests to the back-end virtual host.

The mod_gzip log file shows standard http requests being compresses, but 
https requests aren't logged at all.

Apache logs show nothing amiss and if I go to 
http://host.domain.com:44300 I get page content and it shows in the 
mod_gzip logs, so that at least appears to work.

Anybody got any ideas?

This is what I've done with the httpd.conf file:
===================
Main server section
===================
LoadModule proxy_module       modules/libproxy.so
AddModule	mod_proxy.c

<IfDefine HAVE_SSL>
Listen 80
Listen 443
Listen 44300
</IfDefine>

======================
mod_gzip configuration
======================
LoadModule gzip_module        /usr/lib/apache/mod_gzip.so
AddModule mod_gzip.c

<IfModule mod_gzip.c>
mod_gzip_on     yes
mod_gzip_command_version        '/mod_gzip_status'
mod_gzip_temp_dir       /tmp
mod_gzip_keep_workfiles No
mod_gzip_minimum_file_size      300
mod_gzip_maximum_file_size      500000
mod_gzip_maximum_inmem_size     60000
mod_gzip_handle_methods         GET POST
mod_gzip_item_include   file    jsp
mod_gzip_item_include   file    \.htm$
mod_gzip_item_include   file    \.html$
mod_gzip_item_exclude   file    \.js$
mod_gzip_item_exclude   file    \.css$
mod_gzip_item_include   file    \.pl$
mod_gzip_item_include   handler ^cgi-script$
mod_gzip_item_include   mime    ^text/html
mod_gzip_item_include   mime    ^text/xml
mod_gzip_item_include   mime    ^text/plain
mod_gzip_item_include   mime    ^text/.*
mod_gzip_item_include   mime    ^httpd/unix-directory
mod_gzip_item_exclude   mime    ^image/
mod_gzip_dechunk        yes

LogFormat                     "%h %l %u %t \"%V %r\" %<s %b mod_gzip: 
%{mod_gzip
_result}n In:%{mod_gzip_input_size}n -< Out:%{mod_gzip_output_size}n = 
%{mod_gzi
p_compression_ratio}n pct." common_with_mod_gzip_info2

CustomLog                     logs/mod_gzip.log common_with_mod_gzip_info2

mod_gzip_add_header_count     Yes
mod_gzip_send_vary            On
</IfModule>

================
SSL Virtual Host
================
<VirtualHost _default_:443>
#  General setup for the virtual host
#DocumentRoot "/etc/httpd/htdocs"
ServerName my.host.domain.com
#ServerAdmin you@your.address
ErrorLog logs/error_log
TransferLog logs/access_log
mod_gzip_on     No
ProxyRequests On
ProxyPass / http://localhost:44300/
ProxyPassreverse / http://localhost:44300/

==================================
Non-ssl virtual host for the proxy
==================================
<VirtualHost _default_:44300>
ServerName my.host.domain.com
#ServerAdmin you@your.address
ErrorLog logs/error_log
TransferLog logs/access_log
mod_gzip_on	Yes