worker_processes 16; error_log /var/log/nginx/error.log; # #pid logs/nginx.pid; events { worker_connections 16384; } http { upstream vpro { server web1:443; server web2:443; server web3:443 weight=3; } server { listen 80; server_name uplink-vpro.vps-server.ru; location / { proxy_pass http://vpro; proxy_set_header Host uplink-vpro.vps-server.ru; proxy_set_header X-Forwarded-For $remote_addr; } } server { listen 443 ssl; server_name uplink-vpro.vps-server.ru; ssl_certificate /usr/local/etc/nginx/certs/uplink-vpro.vps-server.ru.pem; ssl_certificate_key /usr/local/etc/nginx/certs/uplink-vpro.vps-server.ru.key; location / { proxy_pass https://vpro; proxy_set_header Host uplink-vpro.vps-server.ru; proxy_set_header X-Forwarded-For $remote_addr; } } }