yohobuywap_php.conf
938 Bytes
#app show help page
location =/help/shareorder.html {
root /Data/PE/yohobuy_H5/assets;
expires 7d;
}
# product detail page 301 redirect to item use https
location ^~ /product/pro_ {
return 301 https://item.m.yohobuy.com$request_uri;
}
location ^~ /shopping/pay/aliwapreturn {
proxy_redirect off;
proxy_pass http://yohobuy;
proxy_set_header Host m.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";
}
location / {
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";
}