DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=14335>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=14335 ------- Additional Comments From [EMAIL PROTECTED] 2005-07-25 18:19 ------- Very annoying bug indeed.. We're trying to use apache as an compression engine in front of some webservers. These webservers also host .pdf .ssmil and .ram files which can't be compressed, because not all browsers handle this correctly. Those files dont always have extensions, so we cant exclude them that way. What they do have, are correct mimetypes. What we would like to do is : AddOutputFilterByType DEFLATE text/html text/plain This can't be done with mod_proxy, and I don't think there is another way to accomplish this. See example below: ############################################################### # cat deflate.conf <Virtualhost *> ServerName direct.test.nl DocumentRoot /var/www/html AddOutputFilterByType DEFLATE text/html text/plain </VirtualHost> <Virtualhost *> ServerName proxy.test.nl ProxyPass / http://backend.test.nl/ ProxyPassReverse / http://backend.test.nl/ AddOutputFilterByType DEFLATE text/html text/plain </VirtualHost> <Virtualhost *> ServerName backend.test.nl DocumentRoot /var/www/html </VirtualHost> ############################################################### # cat test.sh #!/bin/sh wget -q --header="Accept-Encoding: compress, gzip" -sO directhtml direct.test.nl/test.html wget -q --header="Accept-Encoding: compress, gzip" -sO directplain direct.test.nl/test.txt wget -q --header="Accept-Encoding: compress, gzip" -sO directpdf direct.test.nl/test.pdf wget -q --header="Accept-Encoding: compress, gzip" -sO proxyhtml proxy.test.nl/test.html wget -q --header="Accept-Encoding: compress, gzip" -sO proxyplain proxy.test.nl/test.txt wget -q --header="Accept-Encoding: compress, gzip" -sO proxypdf proxy.test.nl/test.pdf for i in directhtml directplain directpdf proxyhtml proxyplain proxypdf; do echo -n "$i: " compressed=`strings $i | grep Content-Encoding` if [ "$compressed" == "" ]; then echo "Not compressed" else echo $compressed fi done ############################################################### # ./test.sh directhtml: Content-Encoding: gzip directplain: Content-Encoding: gzip directpdf: Not compressed proxyhtml: Not compressed proxyplain: Not compressed proxypdf: Not compressed ############################################################### As you see, nothing gets compressed using AddOutputFilterByType in combination with mod_proxy. Without AddOutputFilterByType compression works fine, but not the way we would like it to. Regards, Marc -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
