首页 > 代码库 > Nginx 匹配 iphone Android 微信

Nginx 匹配 iphone Android 微信

          微信: 

           if ( $http_user_agent ~ "MicroMessenger" ){
                 rewrite ^.* https://www.taobao.com permanent;
            }   

          安卓:

            if ( $http_user_agent ~ "Android" ){
                 rewrite ^.* https://www.baidu.com permanent;
            }   

          苹果:

            if ( $http_user_agent ~ "iPhone" ){
                 rewrite ^.* https://www.jd.com permanent;
            }    



本文出自 “微风清凉” 博客,请务必保留此出处http://jiay1.blog.51cto.com/9144615/1946717

Nginx 匹配 iphone Android 微信