httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Calvert, Zach (Zach)** CTR **" <>
Subject [users@httpd] Enable mod_deflate on Incoming Request + mod_prox = Proxy Failure
Date Tue, 23 Oct 2012 20:45:43 GMT
I have been able to enable mod_deflate on the outbound (server response) portions of my request
chain.  However, what I want to do is enable mod_deflate on incoming requests which actually
inflates (unpacks) gzipped data.  I believe there may be a bug in the server logic when you
mix mod_deflate + mod_proxy, but am not quite sure what the chain of events SHOULD look like.

This works:
<VirtualHost _default_:5555>
     ErrorLog logs/
     CustomLog logs/ common

     SSLEngine on

     SSLCertificateFile /var/www/keys/
     SSLCertificateKeyFile /var/www/keys/
     SSLCertificateChainFile /var/www/keys/RapidSSL_CA_bundle.pem

#     SetInputFilter DEFLATE
     SetOutputFilter DEFLATE

     SSLProxyEngine On
     ProxyRequests Off
     ProxyPreserveHost On

     <Proxy *>
        Order deny,allow
        Allow from all
     ProxyPass /
     ProxyPassReverse /

However, uncommenting out the "SetInputFilter DEFLATE" line, followed by modifying my client
to submit gzip posts as gzipped data (including setting Content-Encoding to gzip) result in
this error message:
[Tue Oct 23 15:36:38 2012] [error] (20014)Internal error: proxy: prefetch request body failed
to ( from ()

Why all of a sudden is the proxy trying to perform a prefetch of the request?  What needs
to change about my request/HTTP headers/format to prevent this?  I've tried not setting Content-Length,
setting Content-Length to the original unpacked bytes length, setting Content-Length to the
gzipped byte length.  I've also scoured the internet and found complaints such as
which is resolved by "SetEnv proxy-sendcl 1".  I've tried that to no avail.

Any help/ideas?

Zach Calvert

Zach Calvert
Senior Developer
(817) 614-8938

View raw message