yohobuywap_idc.conf 8.94 KB
#idc old proxy
    location =/invite.html {
        access_log /Data/logs/access.m.yohobuy.com.log  fenxi;
        proxy_redirect off;
        proxy_pass http://yohobuy_idc;
        proxy_set_header   Host   m.yohobuy.com;
        proxy_set_header   X-Real-IP  $remote_addr;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header   Accept-Encoding "gzip";
    }
    location =/app.html {
        access_log /Data/logs/access.m.yohobuy.com.log  fenxi;
        proxy_redirect off;
        proxy_pass http://yohobuy_idc;
        proxy_set_header   Host   m.yohobuy.com;
        proxy_set_header   X-Real-IP  $remote_addr;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header   Accept-Encoding "gzip";
    }
    location =/yohood.html {
        access_log /Data/logs/access.m.yohobuy.com.log  fenxi;
        proxy_redirect off;
        proxy_pass http://yohobuy_idc;
        proxy_set_header   Host   m.yohobuy.com;
        proxy_set_header   X-Real-IP  $remote_addr;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header   Accept-Encoding "gzip";
    }
    location ^~ /home/lottery {
        access_log /Data/logs/access.m.yohobuy.com.log  fenxi;
        proxy_redirect off;
        proxy_pass http://yohobuy_idc;
        proxy_set_header   Host   m.yohobuy.com;
        proxy_set_header   X-Real-IP  $remote_addr;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header   Accept-Encoding "gzip";
    }
    location ^~ /home/redenvelopes {
        access_log /Data/logs/access.m.yohobuy.com.log  fenxi;
        proxy_redirect off;
        proxy_pass http://yohobuy_idc;
        proxy_set_header   Host   m.yohobuy.com;
        proxy_set_header   X-Real-IP  $remote_addr;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header   Accept-Encoding "gzip";
    }
    location ^~ /home/orders/tickets {
        access_log /Data/logs/access.m.yohobuy.com.log  fenxi;
        proxy_redirect off;
        proxy_pass http://yohobuy_idc;
        proxy_set_header   Host   m.yohobuy.com;
        proxy_set_header   X-Real-IP  $remote_addr;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header   Accept-Encoding "gzip";
    }
    location ^~ /home/currency/ {
        access_log /Data/logs/access.m.yohobuy.com.log  fenxi;
        proxy_redirect off;
        proxy_pass http://yohobuy_idc;
        proxy_set_header   Host   m.yohobuy.com;
        proxy_set_header   X-Real-IP  $remote_addr;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header   Accept-Encoding "gzip";
    }
    location = /home/orders/cancel {
        access_log /Data/logs/access.m.yohobuy.com.log  fenxi;
        proxy_redirect off;
        proxy_pass http://yohobuy_idc;
        proxy_set_header   Host   m.yohobuy.com;
        proxy_set_header   X-Real-IP  $remote_addr;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header   Accept-Encoding "gzip";
    }
    location ^~ /wechat {
        access_log /Data/logs/access.m.yohobuy.com.log  fenxi;
        proxy_redirect off;
        proxy_pass http://yohobuy_idc;
        proxy_set_header   Host   m.yohobuy.com;
        proxy_set_header   X-Real-IP  $remote_addr;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header   Accept-Encoding "gzip";
    }
    location ^~ /huodong {
        access_log /Data/logs/access.m.yohobuy.com.log  fenxi;
        proxy_redirect off;
        proxy_pass http://yohobuy_idc;
        proxy_set_header   Host   m.yohobuy.com;
        proxy_set_header   X-Real-IP  $remote_addr;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header   Accept-Encoding "gzip";
    }
    location ^~ /download {
        access_log /Data/logs/access.m.yohobuy.com.log  fenxi;
        proxy_redirect off;
        proxy_pass http://yohobuy_idc;
        proxy_set_header   Host   m.yohobuy.com;
        proxy_set_header   X-Real-IP  $remote_addr;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header   Accept-Encoding "gzip";
    }
    location ^~ /events {
        access_log /Data/logs/access.m.yohobuy.com.log  fenxi;
        proxy_redirect off;
        proxy_pass http://yohobuy_idc;
        proxy_set_header   Host   m.yohobuy.com;
        proxy_set_header   X-Real-IP  $remote_addr;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header   Accept-Encoding "gzip";
    }
    location ^~ /appactive {
        access_log /Data/logs/access.m.yohobuy.com.log  fenxi;
        proxy_redirect off;
        proxy_pass http://yohobuy_idc;
        proxy_set_header   Host   m.yohobuy.com;
        proxy_set_header   X-Real-IP  $remote_addr;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header   Accept-Encoding "gzip";
    }
    location ^~ /cart/success {
        access_log /Data/logs/access.m.yohobuy.com.log  fenxi;
        proxy_redirect off;
        proxy_pass http://yohobuy_idc;
        proxy_set_header   Host   m.yohobuy.com;
        proxy_set_header   X-Real-IP  $remote_addr;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header   Accept-Encoding "gzip";
    }
    location ^~ /shopping/success {
        access_log /Data/logs/access.m.yohobuy.com.log  fenxi;
        proxy_redirect off;
        proxy_pass http://yohobuy_idc;
        proxy_set_header   Host   m.yohobuy.com;
        proxy_set_header   X-Real-IP  $remote_addr;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header   Accept-Encoding "gzip";
    }
    location ^~ /shopping/pay/aliwap {
        access_log /Data/logs/access.m.yohobuy.com.log  fenxi;
        proxy_redirect off;
        proxy_pass http://yohobuy_idc;
        proxy_set_header   Host   m.yohobuy.com;
        proxy_set_header   X-Real-IP  $remote_addr;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header   Accept-Encoding "gzip";
    }
    location = /shopping/pay/wechatwap {
        access_log /Data/logs/access.m.yohobuy.com.log  fenxi;
        proxy_redirect off;
        proxy_pass http://yohobuy_idc;
        proxy_set_header   Host   m.yohobuy.com;
        proxy_set_header   X-Real-IP  $remote_addr;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header   Accept-Encoding "gzip";
    }
    location ^~ /passport/syncsignin {
        access_log /Data/logs/access.m.yohobuy.com.log  fenxi;
        proxy_redirect off;
        proxy_pass http://yohobuy_idc;
        proxy_set_header   Host   m.yohobuy.com;
        proxy_set_header   X-Real-IP  $remote_addr;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header   Accept-Encoding "gzip";
    }

    location = /product/index/search {
            access_log /Data/logs/access.m.yohobuy.com.log  fenxi;
            proxy_redirect off;
            proxy_pass http://yohobuy_idc;
            proxy_set_header   Host   m.yohobuy.com;
            proxy_set_header   X-Real-IP  $remote_addr;
            proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header   Accept-Encoding "gzip";
    }

   location ^~ /share_ {
        access_log /Data/logs/access.m.yohobuy.com.log  fenxi;
        proxy_redirect off;
        proxy_pass http://yohobuy_idc;
        proxy_set_header   Host   m.yohobuy.com;
        proxy_set_header   X-Real-IP  $remote_addr;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header   Accept-Encoding "gzip";
    }

   # idc old proxy for login to write memcache and cookie (if need?)
    location ^~ /Passport/session {
        access_log /Data/logs/access.m.yohobuy.com.log  fenxi;
        proxy_redirect off;
        proxy_pass http://yohobuy_idc;
        proxy_set_header   Host   mapi.yohobuy.com;
        proxy_set_header   X-Real-IP  $remote_addr;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header   Accept-Encoding "gzip";
    }

     location =/product/new/index {
            return 301 http://m.yohobuy.com/product/new;
        }


       #old idc
       location =/download/appsem {
            return 301 http://cdn.yoho.cn/huodong-web/appsem/appsem.html;
        }

       location =/app {
            return 301 http://www.yoho.cn;
        }

      location =/help.html {
             return 301 http://m.yohobuy.com/home/help;
        }

       location ^~ /trends_detail_ {
             return 301 http://guang.m.yohobuy.com;
      }

      #location =/about {
      #       return 301 http://$host$request_uri;
      #  }

      #location =/brand/index/about{
      #       return 301 http://$host$request_uri;
      #  }
      
      location ^~ /product/pro_ {
        return 301 http://item.m.yohobuy.com$request_uri;
    }