yohobuypc_php.conf 2.13 KB
#SEO optimization
    if ($host ~* ^www\.(.*)\.yohobuy\.com) {
       set $sub_name $1;
       return 301 $scheme://$sub_name.yohobuy.com$request_uri;
    }

    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 ^~  /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 ^~  /common/passport {
        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/session/index {
            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 ^~ /home/address/area  {
            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";
        }