Authored by 梁志锋

备份nginx的修改

## old idc
#location = /erp2goods {
# 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 ^~ /passport/auth/signin {
proxy_redirect off;
proxy_pass http://yohobuy-old-www;
... ... @@ -28,12 +19,7 @@
}
location = /yohoshow {
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";
return 301 http://$host;
}
location =/product/specials {
... ... @@ -57,24 +43,20 @@
}
location = /search {
return 301 http://search.yohobuy.com$request_uri;
# return 301 http://search.yohobuy.com$request_uri;
rewrite /search http://search.yohobuy.com permanent;
}
location ^~ /logout_ {
rewrite ^/logout_(.+).html http://www.yohobuy.com/logout.html?token=$1;
}
# location ^~ /product/pro_ {
# return 301 http://item.yohobuy.com$request_uri;
# }
location ^~ /product/pro_ {
proxy_redirect off;
proxy_pass http://yohobuy;
proxy_set_header Host item.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";
return 301 http://item.yohobuy.com$request_uri;
}
location = /sale {
rewrite /sale http://www.yohobuy.com/product/sale/ permanent;
}
location ^~ /brands/ {
... ...
location ^~ /passport/autosign/wechat/ {
proxy_redirect off;
proxy_pass http://yohobuy-node;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Accept-Encoding "gzip";
}
location ^~ /passport/login/wechat/ {
proxy_redirect off;
proxy_pass http://yohobuy-node;
proxy_set_header Host $host;
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-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://yohobuy-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/outlets/ {
proxy_redirect off;
proxy_pass http://yohobuy-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://yohobuy-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";
}
... ...
... ... @@ -165,6 +165,9 @@ server
error_log /Data/logs/error_pc.yohobuy.com.log warn;
# https key
include vhosts/location/yohobuypc_httpskey.conf;
location = / {
return 301 https://www.yohobuy.com/;
}
... ...