[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#741082: apache2: Includes+MultiViews+mod_deflate = Content Encoding Error



Package: apache2
Version: 2.2.22-13+deb7u1
Severity: normal

Hi,

When using SSI directives to open a file with MultiViews auto-search
extensions (e.g. for auto-detected language), if mod_deflate is enable
this results in mixed compressed + uncompressed output.

Attached is a testcase:
- a2enmod include deflate
- Options Includes MultiViews
- $ cat /var/www/html/test.shtml 
  <!--#include virtual="head"-->
  index
- $ echo "head" > /var/www/html/head.en.html
- $ curl -H'Accept-encoding: gzip, deflate' http://localhost/test.shtml
  head [uncompressed]
  [gzip-compressed index.shtml content]

In Firefox / Chromium, this results in
Content Encoding Error / ERR_CONTENT_DECODING_FAILED

A work-around is to disable mod_deflate, or specify the full file name
"head.en.html" (in which case all the output is compressed, which is
the expected behavior).

This happens in both Apache 2.2 (Wheezy) and Apache 2.4 (Jessie).

Attachment: includes-multiviews-deflate.tar.gz
Description: application/gzip


Reply to: