nwtm.yohobuy.com.conf 844 Bytes
    server {
        listen       80;
        server_name  nwtm.yohobuy.com;

        #charset koi8-r;

        access_log  /Data/logs/nginx/access.nwtm.yohobuy.com.log  fenxi;
        error_log /Data/logs/nginx/error.nwtm.yohobuy.com.log error;

        # nginx status check
        location = /status_check {
            default_type text/html;
            return 200  'nwtm.yohobuy.com server is ok!';  
        }

        location / {
            proxy_redirect off;
            proxy_pass http://yoho-web-new-inner;
            proxy_set_header   Host   $host;
            proxy_set_header   X-Real-IP  $http_x_forwarded_for;
            proxy_set_header   X-Yoho-Real-IP  $http_x_forwarded_for;
            proxy_set_header   X-Forwarded-For $http_x_forwarded_for;
            proxy_set_header   Accept-Encoding "gzip"; 
        }
 
    }