yohobuypc_exception.conf
540 Bytes
location ~* /special_(\d+)_(.*)\.html$ {
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 = /index.html {
return 301 http://www.yohobuy.com/;
}
location ^~ /resource/getbanner {
rewrite /resource/getbanner(.*)$ http://www.yohobuy.com/common/getbanner$1 permanent;
}