A Bug

f3zz nginx-forum at nginx.us
Wed Dec 8 00:39:32 MSK 2010

I redirect the *.yanbao360.com to www.yanbao360.com use the
configuration below.

location / {
        if ($host != 'www.yanbao360.com') {
                rewrite ^(.*)$ http://www.yanbao360.com$1;

everything is ok except three case return 200 not 302

how to duplicate (nginx 0.8.x ~ 0.9.x)

[quote]telnet yanbao360.com 80[/quote]

then paste one of these text

GET / HTTP/1.1
Host: WWW.yanbao360.com

GET / HTTP/1.1
Host: www.yanbao360.com.

GET / HTTP/1.1
Host: WWW.yanbao360.com.

press enter twice, you will get nginx return 200 OK

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

More information about the nginx mailing list