Re[2]: nginx и ntop

Dmitry Ivanov nginx-ru на sadok.spb.ru
Пн Апр 11 14:20:25 MSD 2011


Здравствуйте, Igor.

Вы писали 11 апреля 2011 г., 13:45:27:

> nginx с бэкендами работает только по HTTP/1.0.
> Можно сделать отладочный лог ?

С бэком он по 1.0 и работает. Клиенту отдает в 1.1


2011/04/11 14:12:20 [debug] 5293#0: *1159 event timer del: 3: 1141709668
2011/04/11 14:12:20 [debug] 5293#0: *1159 generic phase: 0
2011/04/11 14:12:20 [debug] 5293#0: *1159 rewrite phase: 1
2011/04/11 14:12:20 [debug] 5293#0: *1159 test location: "/"
2011/04/11 14:12:20 [debug] 5293#0: *1159 test location: "ntop"
2011/04/11 14:12:20 [debug] 5293#0: *1159 test location: ~ "\.php$"
2011/04/11 14:12:20 [debug] 5293#0: *1159 using configuration "/ntop"
2011/04/11 14:12:20 [debug] 5293#0: *1159 http cl:-1 max:1048576
2011/04/11 14:12:20 [debug] 5293#0: *1159 rewrite phase: 3
2011/04/11 14:12:20 [debug] 5293#0: *1159 post rewrite phase: 4
2011/04/11 14:12:20 [debug] 5293#0: *1159 generic phase: 5
2011/04/11 14:12:20 [debug] 5293#0: *1159 generic phase: 6
2011/04/11 14:12:20 [debug] 5293#0: *1159 generic phase: 7
2011/04/11 14:12:20 [debug] 5293#0: *1159 access phase: 8
2011/04/11 14:12:20 [debug] 5293#0: *1159 access phase: 9
2011/04/11 14:12:20 [debug] 5293#0: *1159 post access phase: 10
2011/04/11 14:12:20 [debug] 5293#0: *1159 http init upstream, client timer: 0
2011/04/11 14:12:20 [debug] 5293#0: *1159 kevent set event: 3: ft:-2 fl:0025
2011/04/11 14:12:20 [debug] 5293#0: *1159 http script copy: "Host: "
2011/04/11 14:12:20 [debug] 5293#0: *1159 http script var: "192.168.3.111:3000"
2011/04/11 14:12:20 [debug] 5293#0: *1159 http script copy: "
"
2011/04/11 14:12:20 [debug] 5293#0: *1159 http script copy: "Connection: close
"
2011/04/11 14:12:20 [debug] 5293#0: *1159 http proxy header: "User-Agent: Wget/1.12 (freebsd7.3)"
2011/04/11 14:12:20 [debug] 5293#0: *1159 http proxy header: "Accept: */*"
2011/04/11 14:12:20 [debug] 5293#0: *1159 http proxy header:
"HEAD /ntop HTTP/1.0
Host: 192.168.3.111:3000
Connection: close
User-Agent: Wget/1.12 (freebsd7.3)
Accept: */*

"
2011/04/11 14:12:20 [debug] 5293#0: *1159 http cleanup add: 2861D8E0
2011/04/11 14:12:20 [debug] 5293#0: *1159 get rr peer, try: 1
2011/04/11 14:12:20 [debug] 5293#0: *1159 socket 4
2011/04/11 14:12:20 [debug] 5293#0: *1159 connect to 192.168.3.111:3000, fd:4 #1160
2011/04/11 14:12:20 [debug] 5293#0: *1159 kevent set event: 4: ft:-1 fl:0025
2011/04/11 14:12:20 [debug] 5293#0: *1159 connected
2011/04/11 14:12:20 [debug] 5293#0: *1159 http upstream connect: 0
2011/04/11 14:12:20 [debug] 5293#0: *1159 http upstream send request
2011/04/11 14:12:20 [debug] 5293#0: *1159 chain writer buf fl:1 s:117
2011/04/11 14:12:20 [debug] 5293#0: *1159 chain writer in: 2861D8FC
2011/04/11 14:12:20 [debug] 5293#0: *1159 writev: 117 of 117
2011/04/11 14:12:20 [debug] 5293#0: *1159 chain writer out: 00000000
2011/04/11 14:12:20 [debug] 5293#0: *1159 event timer add: 4: 60000:1141709669
2011/04/11 14:12:20 [debug] 5293#0: *1159 http finalize request: -4, "/ntop?" a:1, c:2
2011/04/11 14:12:20 [debug] 5293#0: *1159 http request count:2 blk:0
2011/04/11 14:12:20 [debug] 5293#0: *1159 http run request: "/ntop?"
2011/04/11 14:12:20 [debug] 5293#0: *1159 http upstream check client, write event:1, "/ntop"
2011/04/11 14:12:20 [debug] 5293#0: *1159 http upstream request: "/ntop?"
2011/04/11 14:12:20 [debug] 5293#0: *1159 http upstream process header
2011/04/11 14:12:20 [debug] 5293#0: *1159 malloc: 2863D000:4096
2011/04/11 14:12:20 [debug] 5293#0: *1159 recv: eof:0, avail:30, err:0
2011/04/11 14:12:20 [debug] 5293#0: *1159 recv: fd:4 30 of 4096
2011/04/11 14:12:20 [debug] 5293#0: *1159 http proxy status 501 "501 Not Implemented"
2011/04/11 14:12:20 [debug] 5293#0: *1159 recv: eof:0, avail:0, err:0
2011/04/11 14:12:20 [debug] 5293#0: *1159 http upstream request: "/ntop?"
2011/04/11 14:12:20 [debug] 5293#0: *1159 http upstream process header
2011/04/11 14:12:20 [debug] 5293#0: *1159 recv: eof:1, avail:8778, err:0
2011/04/11 14:12:20 [debug] 5293#0: *1159 recv: fd:4 4066 of 4066
2011/04/11 14:12:20 [debug] 5293#0: *1159 http proxy header: "Date: Mon, 11 Apr 2011 10:12:19 GMT"
2011/04/11 14:12:20 [debug] 5293#0: *1159 http proxy header: "Cache-Control: no-cache"
2011/04/11 14:12:20 [debug] 5293#0: *1159 http proxy header: "Expires: 0"
2011/04/11 14:12:20 [debug] 5293#0: *1159 http proxy header: "Connection: close"
2011/04/11 14:12:20 [debug] 5293#0: *1159 http proxy header: "Server: ntop/4.0.1/32-bit (i386-8.2-RELEASE-freebsd8.2)"
2011/04/11 14:12:20 [debug] 5293#0: *1159 http proxy header: "Content-Type: text/html"
2011/04/11 14:12:20 [debug] 5293#0: *1159 http proxy header done
2011/04/11 14:12:20 [debug] 5293#0: *1159 HTTP/1.1 501 Not Implemented
Server: nginx/0.8.54
Date: Mon, 11 Apr 2011 10:12:20 GMT
Content-Type: text/html
Connection: keep-alive
Cache-Control: no-cache
Expires: 0

2011/04/11 14:12:20 [debug] 5293#0: *1159 write new buf t:1 f:0 2861DAFC, pos 2861DAFC, size: 177 file: 0, size: 0
2011/04/11 14:12:20 [debug] 5293#0: *1159 http write filter: l:1 f:0 s:177
2011/04/11 14:12:20 [debug] 5293#0: *1159 http write filter limit 0
2011/04/11 14:12:20 [debug] 5293#0: *1159 writev: 177 of 177
2011/04/11 14:12:20 [debug] 5293#0: *1159 http write filter 00000000
2011/04/11 14:12:20 [debug] 5293#0: *1159 finalize http upstream request: 0
2011/04/11 14:12:20 [debug] 5293#0: *1159 finalize http proxy request
2011/04/11 14:12:20 [debug] 5293#0: *1159 free rr peer 1 0
2011/04/11 14:12:20 [debug] 5293#0: *1159 close http upstream connection: 4
2011/04/11 14:12:20 [debug] 5293#0: *1159 event timer del: 4: 1141709669
2011/04/11 14:12:20 [debug] 5293#0: *1159 http output filter "/ntop?"
2011/04/11 14:12:20 [debug] 5293#0: *1159 http copy filter: "/ntop?"
2011/04/11 14:12:20 [debug] 5293#0: *1159 http postpone filter "/ntop?" BFBFE44C
2011/04/11 14:12:20 [debug] 5293#0: *1159 write new buf t:0 f:0 00000000, pos 00000000, size: 0 file: 0, size: 0
2011/04/11 14:12:20 [debug] 5293#0: *1159 http write filter: l:1 f:0 s:0
2011/04/11 14:12:20 [debug] 5293#0: *1159 http copy filter: 0 "/ntop?"
2011/04/11 14:12:20 [debug] 5293#0: *1159 http finalize request: 0, "/ntop?" a:1, c:1
2011/04/11 14:12:20 [debug] 5293#0: *1159 set http keepalive handler
2011/04/11 14:12:20 [debug] 5293#0: *1159 http close request
2011/04/11 14:12:20 [debug] 5293#0: *1159 http log handler
2011/04/11 14:12:20 [debug] 5293#0: *1159 free: 2863D000
2011/04/11 14:12:20 [debug] 5293#0: *1159 free: 2861D000, unused: 860
2011/04/11 14:12:20 [debug] 5293#0: *1159 event timer add: 3: 65000:1141714670
2011/04/11 14:12:20 [debug] 5293#0: *1159 free: 286D5900
2011/04/11 14:12:20 [debug] 5293#0: *1159 free: 28627400
2011/04/11 14:12:20 [debug] 5293#0: *1159 hc free: 00000000 0
2011/04/11 14:12:20 [debug] 5293#0: *1159 hc busy: 00000000 0
2011/04/11 14:12:20 [debug] 5293#0: *1159 tcp_nodelay
2011/04/11 14:12:20 [debug] 5293#0: *1159 http empty handler
2011/04/11 14:12:20 [debug] 5293#0: *1159 http keepalive handler
2011/04/11 14:12:20 [info] 5293#0: *1159 kevent() reported that client 77.221.152.186 closed keepalive connection
2011/04/11 14:12:20 [debug] 5293#0: *1159 close http connection: 3
2011/04/11 14:12:20 [debug] 5293#0: *1159 event timer del: 3: 1141714670
2011/04/11 14:12:20 [debug] 5293#0: *1159 free: 00000000
2011/04/11 14:12:20 [debug] 5293#0: *1159 free: 00000000
2011/04/11 14:12:20 [debug] 5293#0: *1159 free: 28671100, unused: 56
2011/04/11 14:12:21 [debug] 5293#0: *1161 event timer del: 3: 1141710680
2011/04/11 14:12:21 [debug] 5293#0: *1161 generic phase: 0
2011/04/11 14:12:21 [debug] 5293#0: *1161 rewrite phase: 1
2011/04/11 14:12:21 [debug] 5293#0: *1161 test location: "/"
2011/04/11 14:12:21 [debug] 5293#0: *1161 test location: "ntop"
2011/04/11 14:12:21 [debug] 5293#0: *1161 test location: ~ "\.php$"
2011/04/11 14:12:21 [debug] 5293#0: *1161 using configuration "/ntop"
2011/04/11 14:12:21 [debug] 5293#0: *1161 http cl:-1 max:1048576
2011/04/11 14:12:21 [debug] 5293#0: *1161 rewrite phase: 3
2011/04/11 14:12:21 [debug] 5293#0: *1161 post rewrite phase: 4
2011/04/11 14:12:21 [debug] 5293#0: *1161 generic phase: 5
2011/04/11 14:12:21 [debug] 5293#0: *1161 generic phase: 6
2011/04/11 14:12:21 [debug] 5293#0: *1161 generic phase: 7
2011/04/11 14:12:21 [debug] 5293#0: *1161 access phase: 8
2011/04/11 14:12:21 [debug] 5293#0: *1161 access phase: 9
2011/04/11 14:12:21 [debug] 5293#0: *1161 post access phase: 10
2011/04/11 14:12:21 [debug] 5293#0: *1161 http init upstream, client timer: 0
2011/04/11 14:12:21 [debug] 5293#0: *1161 kevent set event: 3: ft:-2 fl:0025
2011/04/11 14:12:21 [debug] 5293#0: *1161 http script copy: "Host: "
2011/04/11 14:12:21 [debug] 5293#0: *1161 http script var: "192.168.3.111:3000"
2011/04/11 14:12:21 [debug] 5293#0: *1161 http script copy: "
"
2011/04/11 14:12:21 [debug] 5293#0: *1161 http script copy: "Connection: close
"
2011/04/11 14:12:21 [debug] 5293#0: *1161 http proxy header: "User-Agent: Wget/1.12 (freebsd7.3)"
2011/04/11 14:12:21 [debug] 5293#0: *1161 http proxy header: "Accept: */*"
2011/04/11 14:12:21 [debug] 5293#0: *1161 http proxy header:
"GET /ntop HTTP/1.0
Host: 192.168.3.111:3000
Connection: close
User-Agent: Wget/1.12 (freebsd7.3)
Accept: */*

"
2011/04/11 14:12:21 [debug] 5293#0: *1161 http cleanup add: 2861D8DC
2011/04/11 14:12:21 [debug] 5293#0: *1161 get rr peer, try: 1
2011/04/11 14:12:21 [debug] 5293#0: *1161 socket 4
2011/04/11 14:12:21 [debug] 5293#0: *1161 connect to 192.168.3.111:3000, fd:4 #1162
2011/04/11 14:12:21 [debug] 5293#0: *1161 kevent set event: 4: ft:-1 fl:0025
2011/04/11 14:12:21 [debug] 5293#0: *1161 connected
2011/04/11 14:12:21 [debug] 5293#0: *1161 http upstream connect: 0
2011/04/11 14:12:21 [debug] 5293#0: *1161 http upstream send request
2011/04/11 14:12:21 [debug] 5293#0: *1161 chain writer buf fl:1 s:116
2011/04/11 14:12:21 [debug] 5293#0: *1161 chain writer in: 2861D8F8
2011/04/11 14:12:21 [debug] 5293#0: *1161 writev: 116 of 116
2011/04/11 14:12:21 [debug] 5293#0: *1161 chain writer out: 00000000
2011/04/11 14:12:21 [debug] 5293#0: *1161 event timer add: 4: 60000:1141710680
2011/04/11 14:12:21 [debug] 5293#0: *1161 http finalize request: -4, "/ntop?" a:1, c:2
2011/04/11 14:12:21 [debug] 5293#0: *1161 http request count:2 blk:0
2011/04/11 14:12:21 [debug] 5293#0: *1161 http run request: "/ntop?"
2011/04/11 14:12:21 [debug] 5293#0: *1161 http upstream check client, write event:1, "/ntop"
2011/04/11 14:12:21 [debug] 5293#0: *1161 http upstream request: "/ntop?"
2011/04/11 14:12:21 [debug] 5293#0: *1161 http upstream process header
2011/04/11 14:12:21 [debug] 5293#0: *1161 malloc: 2863D000:4096
2011/04/11 14:12:21 [debug] 5293#0: *1161 recv: eof:1, avail:0, err:0
2011/04/11 14:12:21 [error] 5293#0: *1161 upstream prematurely closed connection while reading response header from upstream, client: 77.221.152.186, server: host.ru, request: "GET /ntop HTTP/1.0", upstream: "http://192.168.3.111:3000/ntop", host: "host.ru"
2011/04/11 14:12:21 [debug] 5293#0: *1161 http next upstream, 2
2011/04/11 14:12:21 [debug] 5293#0: *1161 free rr peer 1 4
2011/04/11 14:12:21 [debug] 5293#0: *1161 finalize http upstream request: 502
2011/04/11 14:12:21 [debug] 5293#0: *1161 finalize http proxy request
2011/04/11 14:12:21 [debug] 5293#0: *1161 free rr peer 0 0
2011/04/11 14:12:21 [debug] 5293#0: *1161 close http upstream connection: 4
2011/04/11 14:12:21 [debug] 5293#0: *1161 event timer del: 4: 1141710680
2011/04/11 14:12:21 [debug] 5293#0: *1161 http finalize request: 502, "/ntop?" a:1, c:1
2011/04/11 14:12:21 [debug] 5293#0: *1161 http special response: 502, "/ntop?"
2011/04/11 14:12:21 [debug] 5293#0: *1161 http set discard body
2011/04/11 14:12:21 [debug] 5293#0: *1161 HTTP/1.1 502 Bad Gateway
Server: nginx/0.8.54
Date: Mon, 11 Apr 2011 10:12:21 GMT
Content-Type: text/html
Content-Length: 173
Connection: keep-alive

2011/04/11 14:12:21 [debug] 5293#0: *1161 write new buf t:1 f:0 2861D9FC, pos 2861D9FC, size: 157 file: 0, size: 0
2011/04/11 14:12:21 [debug] 5293#0: *1161 http write filter: l:0 f:0 s:157
2011/04/11 14:12:21 [debug] 5293#0: *1161 http output filter "/ntop?"
2011/04/11 14:12:21 [debug] 5293#0: *1161 http copy filter: "/ntop?"
2011/04/11 14:12:21 [debug] 5293#0: *1161 http postpone filter "/ntop?" 2861DB58
2011/04/11 14:12:21 [debug] 5293#0: *1161 write old buf t:1 f:0 2861D9FC, pos 2861D9FC, size: 157 file: 0, size: 0
2011/04/11 14:12:21 [debug] 5293#0: *1161 write new buf t:0 f:0 00000000, pos 080F5300, size: 120 file: 0, size: 0
2011/04/11 14:12:21 [debug] 5293#0: *1161 write new buf t:0 f:0 00000000, pos 080F41E0, size: 53 file: 0, size: 0
2011/04/11 14:12:21 [debug] 5293#0: *1161 http write filter: l:1 f:0 s:330
2011/04/11 14:12:21 [debug] 5293#0: *1161 http write filter limit 0
2011/04/11 14:12:21 [debug] 5293#0: *1161 writev: 330 of 330
2011/04/11 14:12:21 [debug] 5293#0: *1161 http write filter 00000000
2011/04/11 14:12:21 [debug] 5293#0: *1161 http copy filter: 0 "/ntop?"
2011/04/11 14:12:21 [debug] 5293#0: *1161 http finalize request: 0, "/ntop?" a:1, c:1
2011/04/11 14:12:21 [debug] 5293#0: *1161 set http keepalive handler
2011/04/11 14:12:21 [debug] 5293#0: *1161 http close request
2011/04/11 14:12:21 [debug] 5293#0: *1161 http log handler
2011/04/11 14:12:21 [debug] 5293#0: *1161 free: 2863D000
2011/04/11 14:12:21 [debug] 5293#0: *1161 free: 2861D000, unused: 1037
2011/04/11 14:12:21 [debug] 5293#0: *1161 event timer add: 3: 65000:1141715700
2011/04/11 14:12:21 [debug] 5293#0: *1161 free: 286D5900
2011/04/11 14:12:21 [debug] 5293#0: *1161 free: 28627400
2011/04/11 14:12:21 [debug] 5293#0: *1161 hc free: 00000000 0
2011/04/11 14:12:21 [debug] 5293#0: *1161 hc busy: 00000000 0
2011/04/11 14:12:21 [debug] 5293#0: *1161 tcp_nodelay
2011/04/11 14:12:21 [debug] 5293#0: *1161 http empty handler
2011/04/11 14:12:21 [debug] 5293#0: *1161 http keepalive handler
2011/04/11 14:12:21 [info] 5293#0: *1161 kevent() reported that client 77.221.152.186 closed keepalive connection
2011/04/11 14:12:21 [debug] 5293#0: *1161 close http connection: 3
2011/04/11 14:12:21 [debug] 5293#0: *1161 event timer del: 3: 1141715700
2011/04/11 14:12:21 [debug] 5293#0: *1161 free: 00000000
2011/04/11 14:12:21 [debug] 5293#0: *1161 free: 00000000
2011/04/11 14:12:21 [debug] 5293#0: *1161 free: 28671100, unused: 56




-- 
С уважением,
 Dmitry                          mailto:nginx-ru на sadok.spb.ru




Подробная информация о списке рассылки nginx-ru