nginx.config       server_names_hash_bucket_size 64;

    upstream 192.168.0.40 {

        ip_hash;

        server 192.168.0.55 max_fails=3 fail_timeout=20s weight=9;
        server 192.168.0.56 max_fails=3 fail_timeout=20s weight=7;
        server 192.168.0.57 max_fails=3 fail_timeout=20s weight=5;
        server 192.168.0.58 max_fails=3 fail_timeout=20s weight=3;
    }
    server {
        listen 80;
        server_name 192.168.0.40;
        location / {
            proxy_pass http://192.168.0.40;
            proxy_set_header Host $host;
            proxy_set_header   X-Real-IP        $remote_addr;
            proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
        }
        access_log  logs/access.log  main;
    }