worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
server_tokens off;
keepalive_timeout 65;
#gzip on;
upstream servers.mydomain.com {
ip_hash;
server localhost:8080 max_fails=2 fail_timeout=600s;
server localhost:8090 max_fails=2 fail_timeout=600s;
}
server {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
proxy_pass http://servers.mydomain.com/test/;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}