Actions
Bug #1091
closedmod_deflate + mod_proxy_core + X-Sendfile does not return page content for HTTP clients without compression support
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
Updated by Anonymous over 17 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
Updated by jan over 17 years ago
- Status changed from New to Fixed
- Resolution set to worksforme
can't reproduce in r1789
Updated by stbuehler about 16 years ago
- Status changed from Fixed to Missing Feedback
Actions
Also available in: Atom