IPv6 addresses for host name are incorrectly trimmed by nginx

Phil Bayfield phil at techlightenment.com
Mon Nov 29 00:30:18 MSK 2010


Here is debug output showing the problem:

2010/11/28 21:22:37 [debug] 10417#0: accept on [2a02:40:40:7::7]:80, ready:
0
2010/11/28 21:22:37 [debug] 10417#0: posix_memalign: 0000000001031DA0:256
@16
2010/11/28 21:22:37 [debug] 10417#0: *8 accept:
2001:0:5ef5:79fd:3472:2f12:921f:6666 fd:3
2010/11/28 21:22:37 [debug] 10417#0: *8 event timer add: 3:
60000:1290979417739
2010/11/28 21:22:37 [debug] 10417#0: *8 epoll add event: fd:3 op:1
ev:80000001
2010/11/28 21:22:37 [debug] 10417#0: *8 posix_memalign: 0000000001063DD0:256
@16
2010/11/28 21:22:37 [debug] 10417#0: *8 malloc: 000000000103FB90:1288
2010/11/28 21:22:37 [debug] 10417#0: *8 malloc: 00000000010400A0:1024
2010/11/28 21:22:37 [debug] 10417#0: *8 posix_memalign:
00000000010404B0:4096 @16
2010/11/28 21:22:37 [debug] 10417#0: *8 http process request line
2010/11/28 21:22:37 [debug] 10417#0: *8 recv: fd:3 644 of 1024
2010/11/28 21:22:37 [debug] 10417#0: *8 http request line: "GET / HTTP/1.1"
2010/11/28 21:22:37 [debug] 10417#0: *8 http uri: "/"
2010/11/28 21:22:37 [debug] 10417#0: *8 http args: ""
2010/11/28 21:22:37 [debug] 10417#0: *8 http exten: ""
2010/11/28 21:22:37 [debug] 10417#0: *8 http process request header line
2010/11/28 21:22:37 [debug] 10417#0: *8 http header: "Accept:
application/x-ms-application, image/jpeg, application/xaml+xml, image/gif,
image/pjpeg, application/x-ms-xbap, application/x-shockwave-flash,
application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword,
*/*"
2010/11/28 21:22:37 [debug] 10417#0: *8 http header: "Accept-Language:
en-GB"
2010/11/28 21:22:37 [debug] 10417#0: *8 http header: "User-Agent:
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0;
SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media
Center PC 6.0; InfoPath.2; .NET CLR 1.1.4322; OfficeLiveConnector.1.5;
OfficeLivePatch.1.3; .NET4.0C; Creative AutoUpdate v1.40.02)"
2010/11/28 21:22:37 [debug] 10417#0: *8 http header: "Accept-Encoding: gzip,
deflate"
*2010/11/28 21:22:37 [debug] 10417#0: *8 http header: "Host:
[2a02:40:40:7::7]"*
2010/11/28 21:22:37 [debug] 10417#0: *8 http header: "Connection:
Keep-Alive"
2010/11/28 21:22:37 [debug] 10417#0: *8 http header done
2010/11/28 21:22:37 [debug] 10417#0: *8 event timer del: 3: 1290979417739
2010/11/28 21:22:37 [debug] 10417#0: *8 generic phase: 0
2010/11/28 21:22:37 [debug] 10417#0: *8 rewrite phase: 1
2010/11/28 21:22:37 [debug] 10417#0: *8 test location: "/"
2010/11/28 21:22:37 [debug] 10417#0: *8 using configuration "/"
2010/11/28 21:22:37 [debug] 10417#0: *8 http cl:-1 max:1048576
2010/11/28 21:22:37 [debug] 10417#0: *8 rewrite phase: 3
2010/11/28 21:22:37 [debug] 10417#0: *8 post rewrite phase: 4
2010/11/28 21:22:37 [debug] 10417#0: *8 generic phase: 5
2010/11/28 21:22:37 [debug] 10417#0: *8 generic phase: 6
2010/11/28 21:22:37 [debug] 10417#0: *8 generic phase: 7
2010/11/28 21:22:37 [debug] 10417#0: *8 access phase: 8
2010/11/28 21:22:37 [debug] 10417#0: *8 access phase: 9
2010/11/28 21:22:37 [debug] 10417#0: *8 post access phase: 10
2010/11/28 21:22:37 [debug] 10417#0: *8 http init upstream, client timer: 0
2010/11/28 21:22:37 [debug] 10417#0: *8 epoll add event: fd:3 op:3
ev:80000005
2010/11/28 21:22:37 [debug] 10417#0: *8 posix_memalign:
0000000001036860:4096 @16
2010/11/28 21:22:37 [debug] 10417#0: *8 http script copy: "Host: "
*2010/11/28 21:22:37 [debug] 10417#0: *8 http script var: "[2a02:40:40:7:"*
2010/11/28 21:22:37 [debug] 10417#0: *8 http script copy: "
2010/11/28 21:22:37 [debug] 10417#0: *8 http script copy: "X-Real-IP: "
2010/11/28 21:22:37 [debug] 10417#0: *8 http script var:
"2001:0:5ef5:79fd:3472:2f12:921f:6666"
2010/11/28 21:22:37 [debug] 10417#0: *8 http script copy: "
2010/11/28 21:22:37 [debug] 10417#0: *8 http script copy: "X-Forwarded-For:
"
2010/11/28 21:22:37 [debug] 10417#0: *8 http script var:
"2001:0:5ef5:79fd:3472:2f12:921f:6666"
2010/11/28 21:22:37 [debug] 10417#0: *8 http script copy: "
2010/11/28 21:22:37 [debug] 10417#0: *8 http script copy: "Connection: close
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20101128/6d844be7/attachment.html>


More information about the nginx mailing list