Project

General

Profile

Actions

Bug #1091

closed

mod_deflate + mod_proxy_core + X-Sendfile does not return page content for HTTP clients without compression support

Added by Anonymous almost 18 years ago. Updated 12 months ago.

Status:
Obsolete
Priority:
Urgent
Category:
mod_deflate
Target version:
ASK QUESTIONS IN Forums:
No

Description

We are using lighttpd with mod_deflate, mod_proxy_core and X-Sendfile to serve static pages from /dev/shm cache. If HTTP client has compression disabled, lighttpd returns proper headers without content at all.

Example:


ab -v 5 -n 1 -c 1 -H "Accept-Encoding: gzip" http://www.nokaut.pl/ 

works ok


ab -v 5 -n 1 -c 1 http://www.nokaut.pl/
}}} 
returns the following headers, but no content:
{{{
LOG: header received:
HTTP/1.0 200 OK
Content-type: text/html
ETag: "-2667053398680807985" 
Accept-Ranges: bytes
Last-Modified: Thu, 22 Mar 2007 17:46:32 GMT
Content-Length: 64313
Connection: close
Date: Thu, 22 Mar 2007 18:18:26 GMT
Server: Web 2.0

LOG: Response code = 200
..done

mod_deflate works correctly for PHP scripts which are not using X-Sendfile as well as for static files.

In case the bug is not easily reproduced, I can send you our configuration details by email.

-- michal.jaskolski at nokaut.pl

Actions #1

Updated by Anonymous almost 18 years ago

We have added a workaround in PHP code: X-Sendfile is not used if $_SERVERHTTP_ACCEPT_ENCODING is not set.

-- michal.jaskolski at nokaut.pl

Actions #2

Updated by jan over 17 years ago

formatted the description a bit

Actions #3

Updated by jan over 17 years ago

  • Status changed from New to Fixed
  • Resolution set to worksforme

can't reproduce in r1789

Actions #4

Updated by stbuehler about 16 years ago

  • Status changed from Fixed to Missing Feedback
Actions #5

Updated by gstrauss 12 months ago

  • Description updated (diff)
  • Status changed from Missing Feedback to Obsolete
  • ASK QUESTIONS IN Forums set to No

lighttpd 1.5.x branch has been abandoned.

lighttpd 1.4.x branch is now far more advanced and continues to be maintained.

Actions

Also available in: Atom