Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 11th, 2012  |  syntax: None  |  size: 0.93 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. [root@CentOS-60-64-minimal ~]# cat /etc/nginx/conf.d/example_ssl.conf
  2. # HTTPS server
  3. #
  4.  
  5. upstream backend {
  6.     server localhost:5000;
  7.     server localhost:5001;
  8. }
  9.  
  10.  
  11. server {
  12.     listen       4443;
  13.     server_name  panelcp.hostbillw.com;
  14.  
  15.     ssl                  on;
  16.     ssl_certificate      /etc/nginx/ssl/nixcraft.in.crt;
  17.     ssl_certificate_key  /etc/nginx/ssl/nixcraft.in.key;
  18.  
  19.     ssl_session_timeout  5m;
  20.  
  21.     ssl_protocols  SSLv2 SSLv3 TLSv1;
  22.     ssl_ciphers  HIGH:!aNULL:!MD5;
  23.     ssl_prefer_server_ciphers   on;
  24.  
  25.  
  26.     location / {
  27.       proxy_set_header Host $http_host;
  28.       proxy_set_header X-Forwarded-Host $http_host;
  29.       proxy_set_header X-Real-IP $remote_addr;
  30.       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  31.       proxy_set_header X-Forwarded-Proto https;
  32.       proxy_set_header X-Forwarded-Port 443; #this is important for Catalyst Apps!
  33.       proxy_pass http://backend;
  34.     }
  35. }