upstream 4Asite{
server 192.168.16.99:8080 fail_timeout=15s;
server 192.168.16.66:8080 fail_timeout=15s;
ip_hash;
}
server
{
server_tokens off;
listen 8899;
# listen [::]:8088 ipv6only=on;
location / {
proxy_temp_file_write_size 64k;
proxy_connect_timeout 10080s;
proxy_send_timeout 10080;
proxy_read_timeout 10080;
proxy_buffer_size 64k;
proxy_buffers 16 32k;
proxy_busy_buffers_size 64k;
proxy_request_buffering off;
proxy_buffering off;
proxy_redirect off;
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_http_version 1.1;
proxy_pass http://4Asite;
client_max_body_size 1024m;
client_body_buffer_size 128k;
}
error_page 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 421 422 423 424 425 426 449 500 501 502 503 504 505 506 507 509510 400 /404.html;
}