Actions
Bug #1021
closedBug in mod_deflate when gzipping text/javascript
ASK QUESTIONS IN Forums:
Description
error_log
2007-02-10 12:58:45: (response.c.163) run condition 2007-02-10 12:58:45: (response.c.215) -- splitting Request-URI 2007-02-10 12:58:45: (response.c.216) Request-URI : /ajax/server.php?client=all&stub=PriceTab 2007-02-10 12:58:45: (response.c.217) URI-scheme : http 2007-02-10 12:58:45: (response.c.218) URI-authority: test.com 2007-02-10 12:58:45: (response.c.219) URI-path : /ajax/server.php 2007-02-10 12:58:45: (response.c.220) URI-query : client=all&stub=PriceTab 2007-02-10 12:58:45: (response.c.270) -- sanatising URI 2007-02-10 12:58:45: (response.c.271) URI-path : /ajax/server.php 2007-02-10 12:58:45: (configfile-glue.c.469) === start of 1 condition block === 2007-02-10 12:58:45: (configfile-glue.c.421) HTTP["url"] ( /ajax/server.php ) compare to \.php$ 2007-02-10 12:58:45: (configfile-glue.c.484) 1 result: true 2007-02-10 12:58:45: (configfile-glue.c.490) 1 (cached) result: true 2007-02-10 12:58:45: (configfile-glue.c.490) 1 (cached) result: true 2007-02-10 12:58:45: (configfile-glue.c.490) 1 (cached) result: true 2007-02-10 12:58:45: (configfile-glue.c.490) 1 (cached) result: true 2007-02-10 12:58:45: (response.c.387) -- before doc_root 2007-02-10 12:58:45: (response.c.388) Doc-Root : /var/www/test.com/htdocs 2007-02-10 12:58:45: (response.c.389) Rel-Path : /ajax/server.php 2007-02-10 12:58:45: (response.c.390) Path : 2007-02-10 12:58:45: (response.c.443) -- after doc_root 2007-02-10 12:58:45: (response.c.444) Doc-Root : /var/www/test.com/htdocs 2007-02-10 12:58:45: (response.c.445) Rel-Path : /ajax/server.php 2007-02-10 12:58:45: (response.c.446) Path : /var/www/test.com/htdocs/ajax/server.php 2007-02-10 12:58:45: (configfile-glue.c.490) 1 (cached) result: true 2007-02-10 12:58:45: (configfile-glue.c.490) 1 (cached) result: true 2007-02-10 12:58:45: (response.c.463) -- logical -> physical 2007-02-10 12:58:45: (response.c.464) Doc-Root : /var/www/test.com/htdocs 2007-02-10 12:58:45: (response.c.465) Rel-Path : /ajax/server.php 2007-02-10 12:58:45: (response.c.466) Path : /var/www/test.com/htdocs/ajax/server.php 2007-02-10 12:58:45: (response.c.484) -- handling physical path 2007-02-10 12:58:45: (response.c.485) Path : /var/www/test.com/htdocs/ajax/server.php 2007-02-10 12:58:45: (connections.c.1522) state at exit: 15 handle-req 2007-02-10 12:58:45: (connections.c.938) state at start 15 handle-req 2007-02-10 12:58:45: (connections.c.1062) state for fd 15 handle-req 2007-02-10 12:58:45: (response.c.484) -- handling physical path 2007-02-10 12:58:45: (response.c.485) Path : /var/www/test.com/htdocs/ajax/server.php 2007-02-10 12:58:45: (response.c.493) -- file found 2007-02-10 12:58:45: (response.c.494) Path : /var/www/test.com/htdocs/ajax/server.php 2007-02-10 12:58:45: (response.c.642) -- handling subrequest 2007-02-10 12:58:45: (response.c.643) Path : /var/www/test.com/htdocs/ajax/server.php 2007-02-10 12:58:45: (configfile-glue.c.490) 1 (cached) result: true mod_proxy_core.c.1952: (trace) handling it in mod_proxy_core: physical.path=/var/www/test.com/htdocs/ajax/server.php 2007-02-10 12:58:45: (response.c.654) -- subrequest finished 2007-02-10 12:58:45: (configfile-glue.c.490) 1 (cached) result: true 2007-02-10 12:58:46: (connections.c.938) state at start 15 read-content 2007-02-10 12:58:46: (configfile-glue.c.490) 1 (cached) result: true 2007-02-10 12:58:46: (configfile-glue.c.490) 1 (cached) result: true 2007-02-10 12:58:46: (configfile-glue.c.490) 1 (cached) result: true mod_deflate.c.1201: (trace) add deflate filter to filter chain 2007-02-10 12:58:46: (mod_deflate.c.1235) Content-Type: text/javascript; charset=utf-8 2007-02-10 12:58:46: (mod_deflate.c.1242) mime-type: text/html 2007-02-10 12:58:46: (mod_deflate.c.1242) mime-type: text/plain 2007-02-10 12:58:46: (mod_deflate.c.1242) mime-type: text/css 2007-02-10 12:58:46: (mod_deflate.c.1242) mime-type: text/javascript 2007-02-10 12:58:46: (mod_deflate.c.1281) add Vary: Accept-Encoding for /ajax/server.php 2007-02-10 12:58:46: (mod_deflate.c.319) output-buffer-size: 0 2007-02-10 12:58:46: (mod_deflate.c.321) compression-level: 9 2007-02-10 12:58:46: (mod_deflate.c.323) mem-level: 9 2007-02-10 12:58:46: (mod_deflate.c.325) window-size: -15 2007-02-10 12:58:46: (mod_deflate.c.327) min-compress-size: 20 2007-02-10 12:58:46: (mod_deflate.c.329) work-block-size: 512 2007-02-10 12:58:46: (mod_deflate.c.1317) enable compression for /ajax/server.php , type= gzip 2007-02-10 12:58:46: (mod_deflate.c.1354) end = 0 for uri /ajax/server.php 2007-02-10 12:58:46: (mod_deflate.c.959) compress: in_queue len= 0 2007-02-10 12:58:46: (mod_deflate.c.1027) compressed bytes: 0 mod_deflate.c.1039: (trace) end: 0 - 0 - 0 2007-02-10 12:58:46: (configfile-glue.c.490) 1 (cached) result: true 2007-02-10 12:58:46: (response.c.127) Response-Header: HTTP/1.1 200 OK X-Powered-By: PHP/5.2.1 Expires: Thu, 19 Nov 1981 08:52:00 GMT Pragma: no-cache Cache-Control: must-revalidate ETag: b333051333077de388749fedee606e4c Content-Type: text/javascript; charset=utf-8 Vary: Accept-Encoding Content-Encoding: gzip Transfer-Encoding: chunked Date: Sat, 10 Feb 2007 10:58:45 GMT Server: lighttpd/1.5.0 2007-02-10 12:58:46: (configfile-glue.c.490) 1 (cached) result: true 2007-02-10 12:58:46: (connections.c.938) state at start 15 write-content 2007-02-10 12:58:46: (configfile-glue.c.490) 1 (cached) result: true 2007-02-10 12:58:46: (mod_deflate.c.959) compress: in_queue len= 65528 2007-02-10 12:58:46: (mod_deflate.c.367) gzip_header len= 10 2007-02-10 12:58:46: (mod_deflate.c.402) compress: in= 16384 , out= 0 2007-02-10 12:58:46: (mod_deflate.c.402) compress: in= 16384 , out= 0 2007-02-10 12:58:46: (mod_deflate.c.402) compress: in= 16384 , out= 0 2007-02-10 12:58:46: (mod_deflate.c.402) compress: in= 16376 , out= 0 2007-02-10 12:58:46: (mod_deflate.c.1027) compressed bytes: 65528 mod_deflate.c.1039: (trace) end: 0 - 65528 - 65528 2007-02-10 12:58:46: (mod_deflate.c.468) flush: in= 0 , out= 17936 2007-02-10 12:58:46: (connections.c.938) state at start 15 write-content 2007-02-10 12:58:46: (configfile-glue.c.490) 1 (cached) result: true 2007-02-10 12:58:46: (connections.c.938) state at start 15 write-content 2007-02-10 12:58:46: (configfile-glue.c.490) 1 (cached) result: true 2007-02-10 12:58:46: (mod_deflate.c.959) compress: in_queue len= 0 2007-02-10 12:58:46: (mod_deflate.c.1027) compressed bytes: 0 mod_deflate.c.1039: (trace) end: 0 - 65528 - 65528 2007-02-10 12:58:46: (mod_deflate.c.1045) flush error 2007-02-10 12:58:47: (connections.c.938) state at start 15 write-content 2007-02-10 12:58:47: (configfile-glue.c.490) 1 (cached) result: true 2007-02-10 12:58:48: (connections.c.938) state at start 15 write-content 2007-02-10 12:58:48: (configfile-glue.c.490) 1 (cached) result: true 2007-02-10 12:58:51: (connections.c.938) state at start 13 error 2007-02-10 12:58:51: (connections.c.1495) shutdown for fd 13 2007-02-10 12:58:51: (connections.c.1406) state for fd 13 close 2007-02-10 12:58:51: (connections.c.1435) connection closed for fd 13 2007-02-10 12:58:51: (connections.c.951) state for fd 13 connect 2007-02-10 12:58:51: (connections.c.1522) state at exit: 13 connect
lighttpd.conf
# lighttpd configuration file # # use a it as base for lighttpd 1.0.0 and above # # $Id: lighttpd.conf,v 1.7 2004/11/03 22:26:05 weigon Exp $ ############ Options you really have to take care of #################### ## modules to load # at least mod_access and mod_accesslog should be loaded # all other module should only be loaded if really neccesary # - saves some time # - saves memory server.modules = ( "mod_auth", "mod_rewrite", "mod_redirect", "mod_access", "mod_indexfile", "mod_proxy_core", "mod_proxy_backend_http", "mod_proxy_backend_fastcgi", "mod_uploadprogress", "mod_alias", "mod_expire", "mod_accesslog", "mod_deflate" ) ## a static document-root, for virtual-hosting take look at the ## server.virtual-* options server.document-root = "/var/www/test.com/htdocs" ## where to send error-messages to server.errorlog = "/var/www/test.com/logs/error_log" # files to check for if .../ is requested server.indexfiles = ( "index.php", "index.html", "index.htm", "default.htm" ) server.network-backend = "linux-aio-sendfile" # mimetype mapping mimetype.assign = ( ".pdf" => "application/pdf", ".sig" => "application/pgp-signature", ".spl" => "application/futuresplash", ".class" => "application/octet-stream", ".ps" => "application/postscript", ".torrent" => "application/x-bittorrent", ".dvi" => "application/x-dvi", ".gz" => "application/x-gzip", ".pac" => "application/x-ns-proxy-autoconfig", ".swf" => "application/x-shockwave-flash", ".tar.gz" => "application/x-tgz", ".tgz" => "application/x-tgz", ".tar" => "application/x-tar", ".zip" => "application/zip", ".mp3" => "audio/mpeg", ".m3u" => "audio/x-mpegurl", ".wma" => "audio/x-ms-wma", ".wax" => "audio/x-ms-wax", ".ogg" => "audio/x-wav", ".wav" => "audio/x-wav", ".gif" => "image/gif", ".jpg" => "image/jpeg", ".jpeg" => "image/jpeg", ".png" => "image/png", ".xbm" => "image/x-xbitmap", ".xpm" => "image/x-xpixmap", ".xwd" => "image/x-xwindowdump", ".css" => "text/css", ".html" => "text/html", ".htm" => "text/html", ".js" => "text/javascript", ".asc" => "text/plain", ".c" => "text/plain", ".conf" => "text/plain", ".text" => "text/plain", ".txt" => "text/plain", ".dtd" => "text/xml", ".xml" => "text/xml", ".mpeg" => "video/mpeg", ".mpg" => "video/mpeg", ".mov" => "video/quicktime", ".qt" => "video/quicktime", ".avi" => "video/x-msvideo", ".asf" => "video/x-ms-asf", ".asx" => "video/x-ms-asf", ".wmv" => "video/x-ms-wmv" ) # Use the "Content-Type" extended attribute to obtain mime type if possible # mimetype.use-xattr = "enable" #### accesslog module accesslog.filename = "/var/www/test.com/logs/access_log" ## deny access the file-extensions # # ~ is for backupfiles from vi, emacs, joe, ... # .inc is often used for code includes which should in general not be part # of the document-root url.access-deny = ( "~", ".inc" ) ## bind to port (default: 80) server.port = 80 ## to help the rc.scripts server.pid-file = "/var/run/lighttpd.pid" ## enable debugging debug.log-request-header = "enable" debug.log-response-header = "enable" debug.log-request-handling = "enable" debug.log-file-not-found = "enable" debug.log-state-handling = "enable" debug.log-condition-handling = "enable" debug.log-condition-cache-handling = "enable" static-file.exclude-extensions = ( ".php" ) #server.error-handler-404 = "/error.php" $HTTP["url"] =~ "\.php$" { proxy-core.balancer = "round-robin" proxy-core.protocol = "fastcgi" proxy-core.allow-x-sendfile ="enable" proxy-core.check-local = "enable" proxy-core.backends = ( "unix:/tmp/fcgi.sock" ) proxy-core.max-pool-size = 5 } deflate.enabled = "enable" deflate.compression-level = 9 deflate.mem-level = 9 deflate.window-size = 15 deflate.min-compress-size = 20 deflate.sync-flush = "enable" deflate.output-buffer-size = 8192 deflate.work-block-size = 512 deflate.mimetypes = ("text/html", "text/plain", "text/css", "text/javascript") deflate.debug = "enable" deflate.allowed_encodings = ( "bzip2", "gzip", "deflate" ) server.event-handler = "linux-sysepoll" server.use-noatime = "enable" server.max-stat-threads = 2 server.max-read-threads = 64
-- boom
Updated by jakabosky over 17 years ago
- Status changed from New to Fixed
- Resolution set to fixed
fixed as of revision r1646
Actions
Also available in: Atom