xianyu.yohobuy.com.conf 978 Bytes
    server {
        listen       80;
        server_name  xianyu.yohobuy.com;

        #charset koi8-r;

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

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

        location / {
            limit_req zone=allips_per_ip_50 burst=10 nodelay;
            limit_req zone=limit_per_url_200 burst=50 nodelay;
            proxy_redirect off;
            proxy_pass http://xianyu-yohobuy-node;
            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"; 
        }
 
    }