Guest User

Untitled

a guest
May 26th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. server {
  2. listen 80;
  3. listen [::]:80 ipv6only=on;
  4. server_name www.mysite.com;
  5. passenger_enabled on;
  6. rails_env production;
  7. root /home/directory;
  8.  
  9. # redirect server error pages to the static page /50x.html
  10. error_page 500 502 503 504 /50x.html;
  11. location = /50x.html {
  12. root html;
  13. }
  14.  
  15. }
  16.  
  17. server {
  18. listen 443;
  19. server_name www.mysite.com;
  20. passenger_enabled on;
  21. rails_env production;
  22. root /home/directory;
  23.  
  24. ssl on;
  25. ssl_certificate /etc/ssl/my_certificate;
  26. ssl_certificate_key /etc/ssl/my_private_key;
  27.  
  28. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  29. ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4";
  30.  
  31. ssl_prefer_server_ciphers on;
  32. ssl_session_timeout 10m;
  33. ssl_session_cache shared:SSL:10m;
  34. ssl_stapling on
  35.  
  36.  
  37.  
  38. # redirect server error pages to the static page /50x.html
  39. error_page 500 502 503 504 /50x.html;
  40. location = /50x.html {
  41. root html;
  42. }
  43.  
  44. }
Add Comment
Please, Sign In to add comment