yohobuywap_node.conf 3.22 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";
    }

#channel page
location = / {
    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 = /boys {
    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 = /girls {
    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 = /girl {
    return 301 /girls;
}

location = /kids {
    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 = /lifestyle {
    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 ^~ /channel {
    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/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";
}