|
|
server
|
|
|
{
|
|
|
listen 80;
|
|
|
server_name www.yohobuy.com *.yohobuy.com gray.yohobuy.com;
|
|
|
root /Data/PE/yohobuy_pc/yohobuy/www.yohobuy.com/public;
|
|
|
access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi;
|
|
|
error_log /Data/logs/error.pc.yohobuy.com.log warn;
|
|
|
|
|
|
if ($host ~* ^www\.(.*)\.yohobuy\.com) {
|
|
|
set $sub_name $1;
|
|
|
return 301 $scheme://$sub_name.yohobuy.com$request_uri;
|
|
|
}
|
|
|
|
|
|
location = /index.html {
|
|
|
return 301 http://www.yohobuy.com/;
|
|
|
}
|
|
|
|
|
|
location ^~ /yohounion/ {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://unionapi/union/;
|
|
|
proxy_set_header Host $host;
|
|
|
proxy_set_header X-Real-IP $http_x_forwarded_for;
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
proxy_set_header Accept-Encoding "gzip";
|
|
|
}
|
|
|
|
|
|
##pc_alipay_notice
|
|
|
location = /pay/notice/alimobilenoticemini {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yoho_service/payment/alipay_notify;
|
|
|
proxy_set_header Host service.yoho.cn;
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
}
|
|
|
|
|
|
location = /woman {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 = /kids {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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://yohobuy-pc;
|
|
|
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 ^~ /common {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 = /brands {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 ^~ /brands/plusstar {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 ^~ /brands/brandList {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 ^~ /brands/brandinfo {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 ^~ /tools {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 = /error.html {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 = /signin.html {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 = /logout.html {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 ^~ /logout_ {
|
|
|
rewrite ^/logout_(.+).html http://www.yohobuy.com/logout.html?token=$1;
|
|
|
}
|
|
|
location = /reg.html {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 ^~ /passport/login/ {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 ^~ /passport/register/ {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 ^~ /passport/images {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 ^~ /passport/back/ {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 = /passport/autosign/wechat {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 ^~ /passport/autosign/ {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 ^~ /passport/autouserinfo/ {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 ^~ /passport/thirdlogin/ {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 = /new {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 = /sale {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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/list/getProductPic {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 = /api/suggest {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 = /error {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 = /about {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 = /hotrank {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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/search/sortSize {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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/index/favoriteBrand {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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/index/isFavoriteBrand {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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/index/getNodeContent {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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/index/getAdnav {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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/pro_ {
|
|
|
return 301 http://item.yohobuy.com$request_uri;
|
|
|
}
|
|
|
location ^~ /product/item/ {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 ^~ /cart/index {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 ^~ /shopping/cart {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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/show_ {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 ^~ /home {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 ^~ /help{
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 ^~ /pay {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 ^~ /shopping/pay {
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 ^~ /brands/ {
|
|
|
rewrite /brands/$ http://www.yohobuy.com/brands permanent;
|
|
|
}
|
|
|
location ^~ /discount {
|
|
|
rewrite /discount http://search.yohobuy.com permanent;
|
|
|
}
|
|
|
|
|
|
location ^~ /gallery {
|
|
|
rewrite /gallery http://www.yohobuy.com permanent;
|
|
|
}
|
|
|
|
|
|
location ^~ /lookbook {
|
|
|
rewrite /lookbook http://guang.yohobuy.com permanent;
|
|
|
}
|
|
|
|
|
|
location ^~ /trends {
|
|
|
rewrite /trends http://guang.yohobuy.com permanent;
|
|
|
}
|
|
|
|
|
|
location ^~ /promotion {
|
|
|
rewrite /promotion http://list.yohobuy.com/sale permanent;
|
|
|
}
|
|
|
|
|
|
location /product/new {
|
|
|
rewrite ^/product/new(.*)$ http://list.yohobuy.com/new$1 permanent;
|
|
|
}
|
|
|
|
|
|
location ^~ /product/exhibit {
|
|
|
rewrite /product/exhibit http://www.yohobuy.com permanent;
|
|
|
}
|
|
|
|
|
|
location /index/guide {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 ^~ /contact.html {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 ^~ /yohobuy.html {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 ^~ /newpower.html {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 ^~ /privacy.html {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 ^~ /link.html {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 ^~ /download/app {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 = / {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 / {
|
|
|
access_log /Data/logs/access.www.yohobuy.com.log fenxi;
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-old-www;
|
|
|
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 =/favicon.ico {
|
|
|
expires 30d;
|
|
|
}
|
|
|
location =/crossdomain.xml {
|
|
|
expires 30d;
|
|
|
}
|
|
|
location =/robots.txt {
|
|
|
expires 1d;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
server
|
|
|
{
|
|
|
listen 80;
|
|
|
server_name new.yohobuy.com;
|
|
|
root /Data/PE/yohobuy_pc/yohobuy/www.yohobuy.com/public;
|
|
|
|
|
|
location = / {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 = /woman {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 = /kids {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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://yohobuy-pc;
|
|
|
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 ^~ /common {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 / {
|
|
|
# access_log /Data/logs/access.www.yohobuy.com.log fenxi;
|
|
|
# proxy_redirect off;
|
|
|
# proxy_pass http://yohobuy-old-new;
|
|
|
# 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 ^~ /tools {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 = /brands {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 ^~ /brands/plusstar {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 ^~ /brands/brandList {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 ^~ /brands/brandinfo {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 ^~ /resource/getbanner {
|
|
|
rewrite /resource/getbanner(.*)$ http://www.yohobuy.com/common/getbanner$1 permanent;
|
|
|
}
|
|
|
|
|
|
location =/favicon.ico {
|
|
|
expires 30d;
|
|
|
}
|
|
|
location =/crossdomain.xml {
|
|
|
expires 30d;
|
|
|
}
|
|
|
location =/robots.txt {
|
|
|
expires 1d;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
server
|
|
|
{
|
|
|
listen 80;
|
|
|
server_name list.yohobuy.com item.yohobuy.com sale.yohobuy.com;
|
|
|
root /Data/PE/yohobuy_pc/yohobuy/www.yohobuy.com/public;
|
|
|
|
|
|
location = / {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 ^~ /common {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 = /new {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 = /sale {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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/list/getProductPic {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 = /api/suggest {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 = /error {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 = /about {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 = /hotrank {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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/search/sortSize {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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/index/favoriteBrand {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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/index/isFavoriteBrand {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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/index/getNodeContent {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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/index/getAdnav {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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/item/ {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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/pro_ {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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/show_ {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 ^~ /cart/index {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 / {
|
|
|
# access_log /Data/logs/access.www.yohobuy.com.log fenxi;
|
|
|
# proxy_redirect off;
|
|
|
# proxy_pass http://yohobuy-old-product;
|
|
|
# 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 =/favicon.ico {
|
|
|
expires 30d;
|
|
|
}
|
|
|
location =/crossdomain.xml {
|
|
|
expires 30d;
|
|
|
}
|
|
|
location =/robots.txt {
|
|
|
expires 1d;
|
|
|
}
|
|
|
|
|
|
location ^~ /purge/product {
|
|
|
default_type application/json;
|
|
|
return 200 '{}';
|
|
|
}
|
|
|
}
|
|
|
|
|
|
server
|
|
|
{
|
|
|
listen 80;
|
|
|
server_name search.yohobuy.com;
|
|
|
|
|
|
location = / {
|
|
|
return 301 http://list.yohobuy.com$request_uri;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
server
|
|
|
{
|
|
|
listen 80;
|
|
|
server_name guang.yohobuy.com;
|
|
|
|
|
|
location / {
|
|
|
root /Data/PE/yohobuy_pc/yohobuy/www.yohobuy.com/public;
|
|
|
index index.php;
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy;
|
|
|
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";
|
|
|
}
|
|
|
}
|
|
|
|
|
|
server
|
|
|
{
|
|
|
listen 80;
|
|
|
server_name huodong.yohobuy.com;
|
|
|
root /Data/PE/yohobuy_pc/yohobuy/huodong.yohobuy.com/public;
|
|
|
|
|
|
location ^~ /cuxiao {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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 / {
|
|
|
access_log /Data/logs/access.www.yohobuy.com.log fenxi;
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-old-huodong;
|
|
|
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 ~* \.(ico|woff|svg|eot|ttf|otf)$ {
|
|
|
expires 30d;
|
|
|
}
|
|
|
location =/crossdomain.xml {
|
|
|
expires 30d;
|
|
|
}
|
|
|
location =/sitemap.xml {
|
|
|
expires 1d;
|
|
|
}
|
|
|
location =/robots.txt {
|
|
|
expires 1d;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
server
|
|
|
{
|
|
|
listen 80;
|
|
|
server_name shop.yohobuy.com;
|
|
|
location / {
|
|
|
root /Data/PE/yohobuy_pc/yohobuy/www.yohobuy.com/public;
|
|
|
index index.php;
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy-pc;
|
|
|
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";
|
|
|
}
|
|
|
}
|
|
|
|
|
|
server
|
|
|
{
|
|
|
listen 80;
|
|
|
server_name yohobuy.com;
|
|
|
|
|
|
location = / {
|
|
|
return 301 http://www.yohobuy.com/;
|
|
|
}
|
|
|
} |
...
|
...
|
|