shops.yohobuy.com.conf 946 Bytes
 server {
    listen      80;
    server_name shops.yohobuy.com;
    #charset koi8-r;
    access_log  /Data/logs/nginx/access_shops.yohobuy.com.log  fenxi;
 
    location ^~ /platform/product/getRemoteImageUrlBySku {
        proxy_redirect off;
        proxy_pass  http://yohobuy-platform/platform/product/getRemoteImageUrlBySku;
        #proxy_set_header   Host   "admin.portal.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-shops;
        #proxy_pass  http://yohobuy-shops-gray;
        proxy_set_header   Host   "shops.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";
    }
}