www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Pour <webmas...@kde.com>
Subject mod_proxy/6511: Proxying does not support Content-Encoding
Date Sun, 10 Sep 2000 14:37:22 GMT

>Number:         6511
>Category:       mod_proxy
>Synopsis:       Proxying does not support Content-Encoding
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Sun Sep 10 07:40:00 PDT 2000
>Originator:     webmaster@kde.com
uname -a:  Linux ... 2.2.14 #1 SMP ... i686
apache -v: Apache/1.3.9 (Unix)
When Apache is put in proxying mode, via mod_rewrite for example, it does
not properly handle the "Content-Encoding" header.  In fact it seems to
completely ignore this header.  When gzip'd data is sent back, the server
interprets the NULL byte in the gzip header as end of transmission and
closes the connection; in any event only 4 bytes get sent to the client.

Solution:  support content-encoding; and if you cant' do that at least
strip the accept-encoding header coming from the client.
Use a gzip-enabled browser (like Netscape 4.7x) and visit http://www.kde.com/.
The page will display fine.  Now set up your web serer to proxy to that site.
Hit the same page.  It won't work the first time; the second time it will b/c
now I tag broken proxy servers and ignore Accept-Encoding headers from them.

Alternatively, it's easy enough to test on your own setup.

Take your favorite index.html file.  gzip it.  Serve it to a gzip-capable
client and be sure to set the "Content-Encoding:  gzip" header first.  Now
try it going through an Apache proxy. 
Yes :-). Look at the Content-Encoding header and if it's set to gzip use
the binary data subroutines to forward the data back rather than the string
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]

View raw message