yohobuywap_node.conf 1.68 KB
   location ^~ /passport/login/wechat/ {
        proxy_redirect off;
        proxy_pass http://yohobuywap-node;
        proxy_set_header   Host   $host;
        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 ^~ /activity {
        proxy_redirect off;
        proxy_pass http://yohobuywap-node;
        proxy_set_header   Host   $host;
        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 = /coupon/index {
        return 301 /activity/coupon?$query_string;
    }

    location ^~ /product/sale/ {
        proxy_redirect off;
        proxy_pass http://yohobuywap-node;
        proxy_set_header   Host   $host;
        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 ^~ /guang/star/ {
        proxy_redirect off;
        proxy_pass http://yohobuywap-node;
        proxy_set_header   Host   $host;
        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/outlet/ {
        proxy_redirect off;
        proxy_pass http://yohobuywap-node;
        proxy_set_header   Host   $host;
        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";
    }