Authored by 梁志锋

修改nginx后进行归档。

... ... @@ -300,25 +300,6 @@ server
proxy_set_header Accept-Encoding "gzip";
}
#for wechat pay
location ^~ /home/orders/pay {
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";
}
location ^~ /shopping/pay/wechatwapapi {
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";
}
# others http 301 redirect https
location / {
return 301 https://m.yohobuy.com$request_uri;
... ... @@ -722,13 +703,6 @@ location ^~ /share_ {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Accept-Encoding "gzip";
}
#for we chat pay
location =/home/orders/pay{
return 301 http://$host$request_uri;
}
location =/shopping/pay/wechatwapapi {
return 301 http://$host$request_uri;
}
location / {
proxy_redirect off;
... ...