IE6 problems when using gzip_disable

dbro nginx-forum at nginx.us
Thu Jan 20 21:13:47 MSK 2011


Hello-
I am new to nginx, so this may be a silly question. I set up gzip with
the recommended 'gzip_disable "MSIE [1-6]\."' parameter. But this
results in long delays and/or "IE cannot download" errors when used with
keepalive and other gzip options. It only seems to affect js files, and
if I rename the files to .txt extensions they have no problems. Does
this mean that gzip doesn't need to be disabled for IE6 any more? Or am
I doing something wrong somewhere else in my configuration?

Here is a description of the behavior and a debug log.
When trying to download the static .js file for my site, it takes 30
seconds to complete in IE6, compared to almost instant in
chrome/firefox. This 30 second duration depends on the keepalive_timeout
setting, which I have at 35. If I change that to 75, the download take
70 seconds to complete. If I change it to 0, the download completes
right away. This affects files with the .js extension, but other files
don't have this problem (.txt, .html). The debug log for 2 download
attempts using IE6 (no service packs applied), first for the file with
extension .txt and then for a file with extension .js:
[quote]
2011/01/20 09:53:38 [debug] 16254#0: epoll: fd:6 ev:0001 d:0A0B5438
2011/01/20 09:53:38 [debug] 16254#0: accept on 0.0.0.0:8090, ready: 0
2011/01/20 09:53:38 [debug] 16254#0: posix_memalign: 0A08EE90:256 @16
2011/01/20 09:53:38 [debug] 16254#0: *171 accept: 192.168.2.15 fd:3
2011/01/20 09:53:38 [debug] 16254#0: *171 event timer add: 3:
60000:2760922031
2011/01/20 09:53:38 [debug] 16254#0: *171 epoll add event: fd:3 op:1
ev:80000001
2011/01/20 09:53:38 [debug] 16254#0: timer delta: 3875
2011/01/20 09:53:38 [debug] 16254#0: posted events 00000000
2011/01/20 09:53:38 [debug] 16254#0: worker cycle
2011/01/20 09:53:38 [debug] 16254#0: epoll timer: 60000
2011/01/20 09:53:38 [debug] 16254#0: epoll: fd:3 ev:0001 d:0A0B54F0
2011/01/20 09:53:38 [debug] 16254#0: *171 malloc: 0A0AC3F8:656
2011/01/20 09:53:38 [debug] 16254#0: *171 malloc: 0A0AC690:1024
2011/01/20 09:53:38 [debug] 16254#0: *171 posix_memalign: 0A090AD0:4096
@16
2011/01/20 09:53:38 [debug] 16254#0: *171 http process request line
2011/01/20 09:53:38 [debug] 16254#0: *171 recv: fd:3 269 of 1024
2011/01/20 09:53:38 [debug] 16254#0: *171 http request line: "GET
/jig-compiled.txt HTTP/1.1"
2011/01/20 09:53:38 [debug] 16254#0: *171 http uri: "/jig-compiled.txt"
2011/01/20 09:53:38 [debug] 16254#0: *171 http args: ""
2011/01/20 09:53:38 [debug] 16254#0: *171 http exten: "txt"
2011/01/20 09:53:38 [debug] 16254#0: *171 http process request header
line
2011/01/20 09:53:38 [debug] 16254#0: *171 http header: "Accept:
image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*"
2011/01/20 09:53:38 [debug] 16254#0: *171 http header: "Accept-Language:
en-us"
2011/01/20 09:53:38 [debug] 16254#0: *171 http header: "Accept-Encoding:
gzip, deflate"
2011/01/20 09:53:38 [debug] 16254#0: *171 http header: "User-Agent:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"
2011/01/20 09:53:38 [debug] 16254#0: *171 http header: "Host:
192.168.2.17:8090"
2011/01/20 09:53:38 [debug] 16254#0: *171 http header: "Connection:
Keep-Alive"
2011/01/20 09:53:38 [debug] 16254#0: *171 http header done
2011/01/20 09:53:38 [debug] 16254#0: *171 event timer del: 3:
2760922031
2011/01/20 09:53:38 [debug] 16254#0: *171 rewrite phase: 0
2011/01/20 09:53:38 [debug] 16254#0: *171 test location: "/"
2011/01/20 09:53:38 [debug] 16254#0: *171 test location: "e"
2011/01/20 09:53:38 [debug] 16254#0: *171 using configuration "/"
2011/01/20 09:53:38 [debug] 16254#0: *171 http cl:-1 max:1048576
2011/01/20 09:53:38 [debug] 16254#0: *171 rewrite phase: 2
2011/01/20 09:53:38 [debug] 16254#0: *171 post rewrite phase: 3
2011/01/20 09:53:38 [debug] 16254#0: *171 generic phase: 4
2011/01/20 09:53:38 [debug] 16254#0: *171 generic phase: 5
2011/01/20 09:53:38 [debug] 16254#0: *171 access phase: 6
2011/01/20 09:53:38 [debug] 16254#0: *171 access phase: 7
2011/01/20 09:53:38 [debug] 16254#0: *171 post access phase: 8
2011/01/20 09:53:38 [debug] 16254#0: *171 try files phase: 9
2011/01/20 09:53:38 [debug] 16254#0: *171 http script var:
"/jig-compiled.txt"
2011/01/20 09:53:38 [debug] 16254#0: *171 try to use file:
"/jig-compiled.txt" "/home/dbro/public/jig-compiled.txt"
2011/01/20 09:53:38 [debug] 16254#0: *171 try file uri:
"/jig-compiled.txt"
2011/01/20 09:53:38 [debug] 16254#0: *171 content phase: 10
2011/01/20 09:53:38 [debug] 16254#0: *171 content phase: 11
2011/01/20 09:53:38 [debug] 16254#0: *171 content phase: 12
2011/01/20 09:53:38 [debug] 16254#0: *171 content phase: 13
2011/01/20 09:53:38 [debug] 16254#0: *171 http filename:
"/home/dbro/public/jig-compiled.txt"
2011/01/20 09:53:38 [debug] 16254#0: *171 add cleanup: 0A09105C
2011/01/20 09:53:38 [debug] 16254#0: *171 http static fd: 4
2011/01/20 09:53:38 [debug] 16254#0: *171 http set discard body
2011/01/20 09:53:38 [debug] 16254#0: *171 HTTP/1.1 200 OK
Server: nginx/0.8.54
Date: Thu, 20 Jan 2011 17:53:38 GMT
Content-Type: text/plain
Content-Length: 97978
Last-Modified: Thu, 20 Jan 2011 16:34:37 GMT
Connection: keep-alive
Accept-Ranges: bytes

2011/01/20 09:53:38 [debug] 16254#0: *171 write new buf t:1 f:0
0A09116C, pos 0A09116C, size: 219 file: 0, size: 0
2011/01/20 09:53:38 [debug] 16254#0: *171 http write filter: l:0 f:0
s:219
2011/01/20 09:53:38 [debug] 16254#0: *171 http output filter
"/jig-compiled.txt?"
2011/01/20 09:53:38 [debug] 16254#0: *171 http copy filter:
"/jig-compiled.txt?"
2011/01/20 09:53:38 [debug] 16254#0: *171 http postpone filter
"/jig-compiled.txt?" BFC5A2DC
2011/01/20 09:53:38 [debug] 16254#0: *171 write old buf t:1 f:0
0A09116C, pos 0A09116C, size: 219 file: 0, size: 0
2011/01/20 09:53:38 [debug] 16254#0: *171 write new buf t:0 f:1
00000000, pos 00000000, size: 0 file: 0, size: 97978
2011/01/20 09:53:38 [debug] 16254#0: *171 http write filter: l:1 f:0
s:98197
2011/01/20 09:53:38 [debug] 16254#0: *171 http write filter limit 0
2011/01/20 09:53:38 [debug] 16254#0: *171 tcp_nopush
2011/01/20 09:53:38 [debug] 16254#0: *171 writev: 219
2011/01/20 09:53:38 [debug] 16254#0: *171 sendfile: @0 97978
2011/01/20 09:53:38 [debug] 16254#0: *171 sendfile: 15709, @0
15709:97978
2011/01/20 09:53:38 [debug] 16254#0: *171 http write filter 0A091298
2011/01/20 09:53:38 [debug] 16254#0: *171 http copy filter: -2
"/jig-compiled.txt?"
2011/01/20 09:53:38 [debug] 16254#0: *171 http finalize request: -2,
"/jig-compiled.txt?" a:1, c:1
2011/01/20 09:53:38 [debug] 16254#0: *171 event timer add: 3:
60000:2760922034
2011/01/20 09:53:38 [debug] 16254#0: *171 epoll add event: fd:3 op:3
ev:80000005
2011/01/20 09:53:38 [debug] 16254#0: timer delta: 3
2011/01/20 09:53:38 [debug] 16254#0: posted events 00000000
2011/01/20 09:53:38 [debug] 16254#0: worker cycle
2011/01/20 09:53:38 [debug] 16254#0: epoll timer: 60000
2011/01/20 09:53:38 [debug] 16254#0: epoll: fd:3 ev:0004 d:0A0B54F0
2011/01/20 09:53:38 [debug] 16254#0: *171 http run request:
"/jig-compiled.txt?"
2011/01/20 09:53:38 [debug] 16254#0: *171 http writer handler:
"/jig-compiled.txt?"
2011/01/20 09:53:38 [debug] 16254#0: *171 http output filter
"/jig-compiled.txt?"
2011/01/20 09:53:38 [debug] 16254#0: *171 http copy filter:
"/jig-compiled.txt?"
2011/01/20 09:53:38 [debug] 16254#0: *171 http postpone filter
"/jig-compiled.txt?" 00000000
2011/01/20 09:53:38 [debug] 16254#0: *171 write old buf t:0 f:1
00000000, pos 00000000, size: 0 file: 15709, size: 82269
2011/01/20 09:53:38 [debug] 16254#0: *171 http write filter: l:1 f:0
s:82269
2011/01/20 09:53:38 [debug] 16254#0: *171 http write filter limit 0
2011/01/20 09:53:38 [debug] 16254#0: *171 sendfile: @15709 82269
2011/01/20 09:53:38 [debug] 16254#0: *171 sendfile: 26064, @15709
26064:82269
2011/01/20 09:53:38 [debug] 16254#0: *171 http write filter 0A091298
2011/01/20 09:53:38 [debug] 16254#0: *171 http copy filter: -2
"/jig-compiled.txt?"
2011/01/20 09:53:38 [debug] 16254#0: *171 http writer output filter: -2,
"/jig-compiled.txt?"
2011/01/20 09:53:38 [debug] 16254#0: *171 event timer: 3, old:
2760922034, new: 2760922035
2011/01/20 09:53:38 [debug] 16254#0: timer delta: 1
2011/01/20 09:53:38 [debug] 16254#0: posted events 00000000
2011/01/20 09:53:38 [debug] 16254#0: worker cycle
2011/01/20 09:53:38 [debug] 16254#0: epoll timer: 59999
2011/01/20 09:53:38 [debug] 16254#0: epoll: fd:3 ev:0004 d:0A0B54F0
2011/01/20 09:53:38 [debug] 16254#0: *171 http run request:
"/jig-compiled.txt?"
2011/01/20 09:53:38 [debug] 16254#0: *171 http writer handler:
"/jig-compiled.txt?"
2011/01/20 09:53:38 [debug] 16254#0: *171 http output filter
"/jig-compiled.txt?"
2011/01/20 09:53:38 [debug] 16254#0: *171 http copy filter:
"/jig-compiled.txt?"
2011/01/20 09:53:38 [debug] 16254#0: *171 http postpone filter
"/jig-compiled.txt?" 00000000
2011/01/20 09:53:38 [debug] 16254#0: *171 write old buf t:0 f:1
00000000, pos 00000000, size: 0 file: 41773, size: 56205
2011/01/20 09:53:38 [debug] 16254#0: *171 http write filter: l:1 f:0
s:56205
2011/01/20 09:53:38 [debug] 16254#0: *171 http write filter limit 0
2011/01/20 09:53:38 [debug] 16254#0: *171 sendfile: @41773 56205
2011/01/20 09:53:38 [debug] 16254#0: *171 sendfile: 34752, @41773
34752:56205
2011/01/20 09:53:38 [debug] 16254#0: *171 http write filter 0A091298
2011/01/20 09:53:38 [debug] 16254#0: *171 http copy filter: -2
"/jig-compiled.txt?"
2011/01/20 09:53:38 [debug] 16254#0: *171 http writer output filter: -2,
"/jig-compiled.txt?"
2011/01/20 09:53:38 [debug] 16254#0: *171 event timer: 3, old:
2760922034, new: 2760922036
2011/01/20 09:53:38 [debug] 16254#0: timer delta: 1
2011/01/20 09:53:38 [debug] 16254#0: posted events 00000000
2011/01/20 09:53:38 [debug] 16254#0: worker cycle
2011/01/20 09:53:38 [debug] 16254#0: epoll timer: 59998
2011/01/20 09:53:38 [debug] 16254#0: epoll: fd:3 ev:0004 d:0A0B54F0
2011/01/20 09:53:38 [debug] 16254#0: *171 http run request:
"/jig-compiled.txt?"
2011/01/20 09:53:38 [debug] 16254#0: *171 http writer handler:
"/jig-compiled.txt?"
2011/01/20 09:53:38 [debug] 16254#0: *171 http output filter
"/jig-compiled.txt?"
2011/01/20 09:53:38 [debug] 16254#0: *171 http copy filter:
"/jig-compiled.txt?"
2011/01/20 09:53:38 [debug] 16254#0: *171 http postpone filter
"/jig-compiled.txt?" 00000000
2011/01/20 09:53:38 [debug] 16254#0: *171 write old buf t:0 f:1
00000000, pos 00000000, size: 0 file: 76525, size: 21453
2011/01/20 09:53:38 [debug] 16254#0: *171 http write filter: l:1 f:0
s:21453
2011/01/20 09:53:38 [debug] 16254#0: *171 http write filter limit 0
2011/01/20 09:53:38 [debug] 16254#0: *171 sendfile: @76525 21453
2011/01/20 09:53:38 [debug] 16254#0: *171 sendfile: 21453, @76525
21453:21453
2011/01/20 09:53:38 [debug] 16254#0: *171 http write filter 00000000
2011/01/20 09:53:38 [debug] 16254#0: *171 http copy filter: 0
"/jig-compiled.txt?"
2011/01/20 09:53:38 [debug] 16254#0: *171 http writer output filter: 0,
"/jig-compiled.txt?"
2011/01/20 09:53:38 [debug] 16254#0: *171 http writer done:
"/jig-compiled.txt?"
2011/01/20 09:53:38 [debug] 16254#0: *171 http finalize request: 0,
"/jig-compiled.txt?" a:1, c:1
2011/01/20 09:53:38 [debug] 16254#0: *171 event timer del: 3:
2760922034
2011/01/20 09:53:38 [debug] 16254#0: *171 set http keepalive handler
2011/01/20 09:53:38 [debug] 16254#0: *171 http close request
2011/01/20 09:53:38 [debug] 16254#0: *171 http log handler
2011/01/20 09:53:38 [debug] 16254#0: *171 run cleanup: 0A09105C
2011/01/20 09:53:38 [debug] 16254#0: *171 file cleanup: fd:4
2011/01/20 09:53:38 [debug] 16254#0: *171 free: 0A090AD0, unused: 1935
2011/01/20 09:53:38 [debug] 16254#0: *171 event timer add: 3:
35000:2760897037
2011/01/20 09:53:38 [debug] 16254#0: *171 free: 0A0AC3F8
2011/01/20 09:53:38 [debug] 16254#0: *171 free: 0A0AC690
2011/01/20 09:53:38 [debug] 16254#0: *171 hc free: 00000000 0
2011/01/20 09:53:38 [debug] 16254#0: *171 hc busy: 00000000 0
2011/01/20 09:53:38 [debug] 16254#0: *171 post event 0A097390
2011/01/20 09:53:38 [debug] 16254#0: timer delta: 1
2011/01/20 09:53:38 [debug] 16254#0: posted events 0A097390
2011/01/20 09:53:38 [debug] 16254#0: posted event 0A097390
2011/01/20 09:53:38 [debug] 16254#0: *171 delete posted event 0A097390
2011/01/20 09:53:38 [debug] 16254#0: *171 http keepalive handler
2011/01/20 09:53:38 [debug] 16254#0: *171 malloc: 0A0AC3F8:1024
2011/01/20 09:53:38 [debug] 16254#0: *171 recv: fd:3 -1 of 1024
2011/01/20 09:53:38 [debug] 16254#0: *171 recv() not ready (11: Resource
temporarily unavailable)
2011/01/20 09:53:38 [debug] 16254#0: posted event 00000000
2011/01/20 09:53:38 [debug] 16254#0: worker cycle
2011/01/20 09:53:38 [debug] 16254#0: epoll timer: 35000

[Now try to load the .js version of the file ...]

2011/01/20 09:54:06 [debug] 16254#0: epoll: fd:3 ev:0005 d:0A0B54F0
2011/01/20 09:54:06 [debug] 16254#0: *171 http keepalive handler
2011/01/20 09:54:06 [debug] 16254#0: *171 recv: fd:3 0 of 1024
2011/01/20 09:54:06 [info] 16254#0: *171 client 192.168.2.15 closed
keepalive connection
2011/01/20 09:54:06 [debug] 16254#0: *171 close http connection: 3
2011/01/20 09:54:06 [debug] 16254#0: *171 event timer del: 3:
2760897037
2011/01/20 09:54:06 [debug] 16254#0: *171 free: 0A0AC3F8
2011/01/20 09:54:06 [debug] 16254#0: *171 free: 00000000
2011/01/20 09:54:06 [debug] 16254#0: *171 free: 0A08EE90, unused: 56
2011/01/20 09:54:06 [debug] 16254#0: timer delta: 27877
2011/01/20 09:54:06 [debug] 16254#0: posted events 00000000
2011/01/20 09:54:06 [debug] 16254#0: worker cycle
2011/01/20 09:54:06 [debug] 16254#0: epoll timer: -1
2011/01/20 09:54:06 [debug] 16254#0: epoll: fd:6 ev:0001 d:0A0B5438
2011/01/20 09:54:06 [debug] 16254#0: accept on 0.0.0.0:8090, ready: 0
2011/01/20 09:54:06 [debug] 16254#0: posix_memalign: 0A08EE90:256 @16
2011/01/20 09:54:06 [debug] 16254#0: *172 accept: 192.168.2.15 fd:3
2011/01/20 09:54:06 [debug] 16254#0: *172 event timer add: 3:
60000:2760949919
2011/01/20 09:54:06 [debug] 16254#0: *172 epoll add event: fd:3 op:1
ev:80000001
2011/01/20 09:54:06 [debug] 16254#0: timer delta: 5
2011/01/20 09:54:06 [debug] 16254#0: posted events 00000000
2011/01/20 09:54:06 [debug] 16254#0: worker cycle
2011/01/20 09:54:06 [debug] 16254#0: epoll timer: 60000
2011/01/20 09:54:06 [debug] 16254#0: epoll: fd:3 ev:0001 d:0A0B54F1
2011/01/20 09:54:06 [debug] 16254#0: *172 malloc: 0A0AC3F8:656
2011/01/20 09:54:06 [debug] 16254#0: *172 malloc: 0A0AC690:1024
2011/01/20 09:54:06 [debug] 16254#0: *172 posix_memalign: 0A090AD0:4096
@16
2011/01/20 09:54:06 [debug] 16254#0: *172 http process request line
2011/01/20 09:54:06 [debug] 16254#0: *172 recv: fd:3 268 of 1024
2011/01/20 09:54:06 [debug] 16254#0: *172 http request line: "GET
/jig-compiled.js HTTP/1.1"
2011/01/20 09:54:06 [debug] 16254#0: *172 http uri: "/jig-compiled.js"
2011/01/20 09:54:06 [debug] 16254#0: *172 http args: ""
2011/01/20 09:54:06 [debug] 16254#0: *172 http exten: "js"
2011/01/20 09:54:06 [debug] 16254#0: *172 http process request header
line
2011/01/20 09:54:06 [debug] 16254#0: *172 http header: "Accept:
image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*"
2011/01/20 09:54:06 [debug] 16254#0: *172 http header: "Accept-Language:
en-us"
2011/01/20 09:54:06 [debug] 16254#0: *172 http header: "Accept-Encoding:
gzip, deflate"
2011/01/20 09:54:06 [debug] 16254#0: *172 http header: "User-Agent:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"
2011/01/20 09:54:06 [debug] 16254#0: *172 http header: "Host:
192.168.2.17:8090"
2011/01/20 09:54:06 [debug] 16254#0: *172 http header: "Connection:
Keep-Alive"
2011/01/20 09:54:06 [debug] 16254#0: *172 http header done
2011/01/20 09:54:06 [debug] 16254#0: *172 event timer del: 3:
2760949919
2011/01/20 09:54:06 [debug] 16254#0: *172 rewrite phase: 0
2011/01/20 09:54:06 [debug] 16254#0: *172 test location: "/"
2011/01/20 09:54:06 [debug] 16254#0: *172 test location: "e"
2011/01/20 09:54:06 [debug] 16254#0: *172 using configuration "/"
2011/01/20 09:54:06 [debug] 16254#0: *172 http cl:-1 max:1048576
2011/01/20 09:54:06 [debug] 16254#0: *172 rewrite phase: 2
2011/01/20 09:54:06 [debug] 16254#0: *172 post rewrite phase: 3
2011/01/20 09:54:06 [debug] 16254#0: *172 generic phase: 4
2011/01/20 09:54:06 [debug] 16254#0: *172 generic phase: 5
2011/01/20 09:54:06 [debug] 16254#0: *172 access phase: 6
2011/01/20 09:54:06 [debug] 16254#0: *172 access phase: 7
2011/01/20 09:54:06 [debug] 16254#0: *172 post access phase: 8
2011/01/20 09:54:06 [debug] 16254#0: *172 try files phase: 9
2011/01/20 09:54:06 [debug] 16254#0: *172 http script var:
"/jig-compiled.js"
2011/01/20 09:54:06 [debug] 16254#0: *172 try to use file:
"/jig-compiled.js" "/home/dbro/public/jig-compiled.js"
2011/01/20 09:54:06 [debug] 16254#0: *172 try file uri:
"/jig-compiled.js"
2011/01/20 09:54:06 [debug] 16254#0: *172 content phase: 10
2011/01/20 09:54:06 [debug] 16254#0: *172 content phase: 11
2011/01/20 09:54:06 [debug] 16254#0: *172 content phase: 12
2011/01/20 09:54:06 [debug] 16254#0: *172 content phase: 13
2011/01/20 09:54:06 [debug] 16254#0: *172 http filename:
"/home/dbro/public/jig-compiled.js"
2011/01/20 09:54:06 [debug] 16254#0: *172 add cleanup: 0A09105C
2011/01/20 09:54:06 [debug] 16254#0: *172 http static fd: 4
2011/01/20 09:54:06 [debug] 16254#0: *172 http set discard body
2011/01/20 09:54:06 [debug] 16254#0: *172 HTTP/1.1 200 OK
Server: nginx/0.8.54
Date: Thu, 20 Jan 2011 17:54:06 GMT
Content-Type: application/x-javascript
Content-Length: 97978
Last-Modified: Wed, 19 Jan 2011 05:15:55 GMT
Connection: keep-alive
Accept-Ranges: bytes

2011/01/20 09:54:06 [debug] 16254#0: *172 write new buf t:1 f:0
0A091178, pos 0A091178, size: 233 file: 0, size: 0
2011/01/20 09:54:06 [debug] 16254#0: *172 http write filter: l:0 f:0
s:233
2011/01/20 09:54:06 [debug] 16254#0: *172 http output filter
"/jig-compiled.js?"
2011/01/20 09:54:06 [debug] 16254#0: *172 http copy filter:
"/jig-compiled.js?"
2011/01/20 09:54:06 [debug] 16254#0: *172 http postpone filter
"/jig-compiled.js?" BFC5A2DC
2011/01/20 09:54:06 [debug] 16254#0: *172 write old buf t:1 f:0
0A091178, pos 0A091178, size: 233 file: 0, size: 0
2011/01/20 09:54:06 [debug] 16254#0: *172 write new buf t:0 f:1
00000000, pos 00000000, size: 0 file: 0, size: 97978
2011/01/20 09:54:06 [debug] 16254#0: *172 http write filter: l:1 f:0
s:98211
2011/01/20 09:54:06 [debug] 16254#0: *172 http write filter limit 0
2011/01/20 09:54:06 [debug] 16254#0: *172 tcp_nopush
2011/01/20 09:54:06 [debug] 16254#0: *172 writev: 233
2011/01/20 09:54:06 [debug] 16254#0: *172 sendfile: @0 97978
2011/01/20 09:54:06 [debug] 16254#0: *172 sendfile: 15695, @0
15695:97978
2011/01/20 09:54:06 [debug] 16254#0: *172 http write filter 0A0912B0
2011/01/20 09:54:06 [debug] 16254#0: *172 http copy filter: -2
"/jig-compiled.js?"
2011/01/20 09:54:06 [debug] 16254#0: *172 http finalize request: -2,
"/jig-compiled.js?" a:1, c:1
2011/01/20 09:54:06 [debug] 16254#0: *172 event timer add: 3:
60000:2760949922
2011/01/20 09:54:06 [debug] 16254#0: *172 epoll add event: fd:3 op:3
ev:80000005
2011/01/20 09:54:06 [debug] 16254#0: timer delta: 3
2011/01/20 09:54:06 [debug] 16254#0: posted events 00000000
2011/01/20 09:54:06 [debug] 16254#0: worker cycle
2011/01/20 09:54:06 [debug] 16254#0: epoll timer: 60000
2011/01/20 09:54:06 [debug] 16254#0: epoll: fd:3 ev:0004 d:0A0B54F1
2011/01/20 09:54:06 [debug] 16254#0: *172 http run request:
"/jig-compiled.js?"
2011/01/20 09:54:06 [debug] 16254#0: *172 http writer handler:
"/jig-compiled.js?"
2011/01/20 09:54:06 [debug] 16254#0: *172 http output filter
"/jig-compiled.js?"
2011/01/20 09:54:06 [debug] 16254#0: *172 http copy filter:
"/jig-compiled.js?"
2011/01/20 09:54:06 [debug] 16254#0: *172 http postpone filter
"/jig-compiled.js?" 00000000
2011/01/20 09:54:06 [debug] 16254#0: *172 write old buf t:0 f:1
00000000, pos 00000000, size: 0 file: 15695, size: 82283
2011/01/20 09:54:06 [debug] 16254#0: *172 http write filter: l:1 f:0
s:82283
2011/01/20 09:54:06 [debug] 16254#0: *172 http write filter limit 0
2011/01/20 09:54:06 [debug] 16254#0: *172 sendfile: @15695 82283
2011/01/20 09:54:06 [debug] 16254#0: *172 sendfile: 26064, @15695
26064:82283
2011/01/20 09:54:06 [debug] 16254#0: *172 http write filter 0A0912B0
2011/01/20 09:54:06 [debug] 16254#0: *172 http copy filter: -2
"/jig-compiled.js?"
2011/01/20 09:54:06 [debug] 16254#0: *172 http writer output filter: -2,
"/jig-compiled.js?"
2011/01/20 09:54:06 [debug] 16254#0: *172 event timer: 3, old:
2760949922, new: 2760949923
2011/01/20 09:54:06 [debug] 16254#0: timer delta: 1
2011/01/20 09:54:06 [debug] 16254#0: posted events 00000000
2011/01/20 09:54:06 [debug] 16254#0: worker cycle
2011/01/20 09:54:06 [debug] 16254#0: epoll timer: 59999
2011/01/20 09:54:06 [debug] 16254#0: epoll: fd:3 ev:0004 d:0A0B54F1
2011/01/20 09:54:06 [debug] 16254#0: *172 http run request:
"/jig-compiled.js?"
2011/01/20 09:54:06 [debug] 16254#0: *172 http writer handler:
"/jig-compiled.js?"
2011/01/20 09:54:06 [debug] 16254#0: *172 http output filter
"/jig-compiled.js?"
2011/01/20 09:54:06 [debug] 16254#0: *172 http copy filter:
"/jig-compiled.js?"
2011/01/20 09:54:06 [debug] 16254#0: *172 http postpone filter
"/jig-compiled.js?" 00000000
2011/01/20 09:54:06 [debug] 16254#0: *172 write old buf t:0 f:1
00000000, pos 00000000, size: 0 file: 41759, size: 56219
2011/01/20 09:54:06 [debug] 16254#0: *172 http write filter: l:1 f:0
s:56219
2011/01/20 09:54:06 [debug] 16254#0: *172 http write filter limit 0
2011/01/20 09:54:06 [debug] 16254#0: *172 sendfile: @41759 56219
2011/01/20 09:54:06 [debug] 16254#0: *172 sendfile: 36200, @41759
36200:56219
2011/01/20 09:54:06 [debug] 16254#0: *172 http write filter 0A0912B0
2011/01/20 09:54:06 [debug] 16254#0: *172 http copy filter: -2
"/jig-compiled.js?"
2011/01/20 09:54:06 [debug] 16254#0: *172 http writer output filter: -2,
"/jig-compiled.js?"
2011/01/20 09:54:06 [debug] 16254#0: *172 event timer: 3, old:
2760949922, new: 2760949924
2011/01/20 09:54:06 [debug] 16254#0: timer delta: 1
2011/01/20 09:54:06 [debug] 16254#0: posted events 00000000
2011/01/20 09:54:06 [debug] 16254#0: worker cycle
2011/01/20 09:54:06 [debug] 16254#0: epoll timer: 59998
2011/01/20 09:54:06 [debug] 16254#0: epoll: fd:3 ev:0004 d:0A0B54F1
2011/01/20 09:54:06 [debug] 16254#0: *172 http run request:
"/jig-compiled.js?"
2011/01/20 09:54:06 [debug] 16254#0: *172 http writer handler:
"/jig-compiled.js?"
2011/01/20 09:54:06 [debug] 16254#0: *172 http output filter
"/jig-compiled.js?"
2011/01/20 09:54:06 [debug] 16254#0: *172 http copy filter:
"/jig-compiled.js?"
2011/01/20 09:54:06 [debug] 16254#0: *172 http postpone filter
"/jig-compiled.js?" 00000000
2011/01/20 09:54:06 [debug] 16254#0: *172 write old buf t:0 f:1
00000000, pos 00000000, size: 0 file: 77959, size: 20019
2011/01/20 09:54:06 [debug] 16254#0: *172 http write filter: l:1 f:0
s:20019
2011/01/20 09:54:06 [debug] 16254#0: *172 http write filter limit 0
2011/01/20 09:54:06 [debug] 16254#0: *172 sendfile: @77959 20019
2011/01/20 09:54:06 [debug] 16254#0: *172 sendfile: 20019, @77959
20019:20019
2011/01/20 09:54:06 [debug] 16254#0: *172 http write filter 00000000
2011/01/20 09:54:06 [debug] 16254#0: *172 http copy filter: 0
"/jig-compiled.js?"
2011/01/20 09:54:06 [debug] 16254#0: *172 http writer output filter: 0,
"/jig-compiled.js?"
2011/01/20 09:54:06 [debug] 16254#0: *172 http writer done:
"/jig-compiled.js?"
2011/01/20 09:54:06 [debug] 16254#0: *172 http finalize request: 0,
"/jig-compiled.js?" a:1, c:1
2011/01/20 09:54:06 [debug] 16254#0: *172 event timer del: 3:
2760949922
2011/01/20 09:54:06 [debug] 16254#0: *172 set http keepalive handler
2011/01/20 09:54:06 [debug] 16254#0: *172 http close request
2011/01/20 09:54:06 [debug] 16254#0: *172 http log handler
2011/01/20 09:54:06 [debug] 16254#0: *172 run cleanup: 0A09105C
2011/01/20 09:54:06 [debug] 16254#0: *172 file cleanup: fd:4
2011/01/20 09:54:06 [debug] 16254#0: *172 free: 0A090AD0, unused: 1912
2011/01/20 09:54:06 [debug] 16254#0: *172 event timer add: 3:
35000:2760924926
2011/01/20 09:54:06 [debug] 16254#0: *172 free: 0A0AC3F8
2011/01/20 09:54:06 [debug] 16254#0: *172 free: 0A0AC690
2011/01/20 09:54:06 [debug] 16254#0: *172 hc free: 00000000 0
2011/01/20 09:54:06 [debug] 16254#0: *172 hc busy: 00000000 0
2011/01/20 09:54:06 [debug] 16254#0: *172 post event 0A097390
2011/01/20 09:54:06 [debug] 16254#0: timer delta: 2
2011/01/20 09:54:06 [debug] 16254#0: posted events 0A097390
2011/01/20 09:54:06 [debug] 16254#0: posted event 0A097390
2011/01/20 09:54:06 [debug] 16254#0: *172 delete posted event 0A097390
2011/01/20 09:54:06 [debug] 16254#0: *172 http keepalive handler
2011/01/20 09:54:06 [debug] 16254#0: *172 malloc: 0A0AC3F8:1024
2011/01/20 09:54:06 [debug] 16254#0: *172 recv: fd:3 -1 of 1024
2011/01/20 09:54:06 [debug] 16254#0: *172 recv() not ready (11: Resource
temporarily unavailable)
2011/01/20 09:54:06 [debug] 16254#0: posted event 00000000
2011/01/20 09:54:06 [debug] 16254#0: worker cycle
2011/01/20 09:54:06 [debug] 16254#0: epoll timer: 35000
2011/01/20 09:54:41 [debug] 16254#0: timer delta: 34998
2011/01/20 09:54:41 [debug] 16254#0: posted events 00000000
2011/01/20 09:54:41 [debug] 16254#0: worker cycle
2011/01/20 09:54:41 [debug] 16254#0: epoll timer: 2
2011/01/20 09:54:41 [debug] 16254#0: timer delta: 3
2011/01/20 09:54:41 [debug] 16254#0: *172 event timer del: 3:
2760924926
2011/01/20 09:54:41 [debug] 16254#0: *172 http keepalive handler
2011/01/20 09:54:41 [debug] 16254#0: *172 close http connection: 3
2011/01/20 09:54:41 [debug] 16254#0: *172 free: 0A0AC3F8
2011/01/20 09:54:41 [debug] 16254#0: *172 free: 00000000
2011/01/20 09:54:41 [debug] 16254#0: *172 free: 0A08EE90, unused: 56
2011/01/20 09:54:41 [debug] 16254#0: posted events 00000000
2011/01/20 09:54:41 [debug] 16254#0: worker cycle
2011/01/20 09:54:41 [debug] 16254#0: epoll timer: -1
[/quote]

here is my nginx.conf with some comments inline:
[code]
# disable user and pid here. using runit's chpst command instead
#user	nginx;
#pid        /var/run/nginx.pid;
daemon  off;

worker_processes  1;
events {
    worker_connections  1024;
}

error_log  /var/log/nginx/debug.log debug;

http {
    include       /opt/nginx/conf/mime.types;
    default_type  application/octet-stream;

    sendfile            on;
    tcp_nopush          on;
    tcp_nodelay         off;

    keepalive_timeout   35;

    gzip                on; # if on, IE6 can't download the js file
    gzip_disable        "MSIE [1-6]\.";
    #gzip_disable        "MSIE [1-6].(?!.*SV1)"; # same problem with
this version
    #gzip_vary           on; # this causes IE to fail entirely (not a
delay)
    gzip_http_version   1.1;
    gzip_comp_level     2;
    gzip_buffers        16 8k; # necessary to work with gzip files
larger than 32k
    #gzip_static         on; # requires ./configure ...
--with-http_gzip_static_module
                            # and timestamps of .gz files should match
uncompressed
    # automatically includes type text/html
    gzip_types		    text/plain text/css
                        application/x-javascript text/xml
                        application/xml application/xml+rss
                        text/javascript;

    include             /etc/nginx/sites-available/*;

}
[/code]
In the sites-available directory, this is the only file:
[code]
# Configuration file for nginx web server

#gzip_min_length 500;
#gzip_proxied    any; # compress info from nodejs server

upstream nodejs_server {
	server 127.0.0.1:8124;
}

server {
    listen 8090; # for testing. can disable this line to listen on 80
    server_name localhost; # for testing, we use the IP address
    access_log  /var/log/nginx/access.log;

    root	/home/dbro/public;
    index  	index.html;
    #error_page  404              /404.html;
    # redirect server error pages to the static page /50x.html
    error_page   500 502 503 504  /50x.html;

    # serve static files, and fallback to index.html
    location / {
	    try_files $uri $uri/ index.html;
	    #expires 1d; # TODO: increase this cache timeout
    }

    # requests handled by node.js
    location = /a {
	    proxy_pass 		http://nodejs_server;
    }
    location = /e {
	    proxy_pass 		http://nodejs_server;
    }

}
[/code]

Thanks very much for help.
Dan

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,167982,167982#msg-167982




More information about the nginx mailing list