user-agent 收集:
http://www.developershome.com/wap/detection/detection.asp?page=userAgentHeader
http://search.cpan.org/~cmanley/Mobile-UserAgent-1.05/lib/Mobile/UserAgent.pm
http://www.zytrax.com/tech/web/mobile_ids.html
http://en.wikipedia.org/wiki/List_of_user_agents_for_mobile_phones
nginx 
location = / {
               root /var/www/path;
if ($http_user_agent ~*  "Nokia") {
rewrite  . /index.html  break;
}
              if ($http_user_agent ~*  "Mobile") {
rewrite  . /index.html  break;
}
if ($http_user_agent ~*  "SAMSUNG") {
rewrite  . /index.html  break;
} }
              if ($http_user_agent ~*  "SonyEricsson") {
rewrite . /index.html  break;
}
if ($http_user_agent ~*  "MOT") {
rewrite . /index.html  break;
} }
if ($http_user_agent ~*  "BlackBerry") {
rewrite . /index.html  break;
}
if ($http_user_agent ~*  "LG") {
rewrite . /index.html  break;
} }
if ($http_user_agent ~*  "HTC") {
rewrite . /index.html  break;
}
              if ($http_user_agent ~*  "J2ME") {
rewrite  . /index.html  break;
}
if ($http_user_agent ~* "Opera Mini") {
rewrite  . /index.html  break;
} }
index index.html;
}
	posted on 2009-12-08 09:22 
冰是没有未来的,因为它的永恒 阅读(6931) 
评论(4)  编辑  收藏  所属分类: 
nginx