Configure proxy SSL using nginx

Here is example SSL configuration using nginx:


server {
     listen  [IP PROXY]:443;
     server_name [RESELLER DOMAIN ];

     ssl_certificate      [FILE CRT];
     ssl_certificate_key  [FILE KEY];

     location / {
               proxy_pass http://srb[RESELLERID].srs-x.com:80;
               proxy_redirect off;
               proxy_set_header Host [DOMAIN RESELLER];
               proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
               proxy_set_header X-Real-IP $remote_addr;
               proxy_set_header X-Forwarded-Proto $scheme;
               client_max_body_size    10m;
               client_body_buffer_size 128k;
               proxy_connect_timeout   90;
               proxy_send_timeout      90;
               proxy_read_timeout      90;
               proxy_buffers           32 32k;
               proxy_buffer_size       64k;
     }
}

Put this line into nginx vhost configuration. Make sure you already replace [IP PROXY], [RESELLER DOMAIN], [FILE CRT], [FILE KEY], dan [RESELLER ID] with your server configuration.