SHARE
TWEET

Untitled

a guest Jan 21st, 2020 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #########################################
  2. #   HTTP to HTTPS redirection   #
  3. #########################################
  4. # Force redirection through HTTPS
  5.  
  6. server{
  7.     listen 80 default_server;
  8.     server_name _;
  9.     return 301 https://$host$request_uri;
  10. }
  11.  
  12. #########################################
  13. #   Enabling SSL configuration  #
  14. #########################################
  15. server{
  16.     listen 443;
  17.     # Definition of SSL settings
  18.     ssl_certificate /etc/nginx/STAR_flexmaint_chain.crt; # Gives the location of the complete certificate
  19.     ssl_certificate_key /etc/nginx/STAR_flexmaint_com.key ; # Gives the location of the private key
  20.     ssl on ; # Enable SSL
  21.     ssl_session_cache builtin:1000 shared:SSL:60m; # Enable the cache for 1MB (=4000 sessions) and for a duration of 60 minutes.
  22.     ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Defines the protocol used by SSL
  23.     ssl_ciphers EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH; # Defines the security applied (encryptions that the browser will use)
  24.     ssl_prefer_server_ciphers on;
  25.  
  26. }
  27.  
  28.  
  29. #########################
  30. #   Test    #
  31. #########################
  32. server{
  33.     listen 443;
  34.     server_name 37223150.flexmaint.com;
  35.     ssl_session_cache builtin:1000 shared:SSL:60m;
  36.  
  37.  
  38.     location /testUrl {
  39.         proxy_pass "http://test.com:8888";
  40.         access_log /var/log/nginx/37223150_Test_flexmaint_testUrl.log;
  41.     }
  42.  
  43.     location /bite {
  44.         proxy_pass "http://test.com:8889";
  45.         access_log /var/log/nginx/37223150_Test_flexmaint_bite.log;
  46.     }
  47. }
  48.  
  49. #########################
  50. #   Flo #
  51. #########################
  52. server{
  53.     listen 443;
  54.     server_name 22534976.flexmaint.com;
  55.     ssl_session_cache builtin:1000 shared:SSL:60m;
  56.  
  57.  
  58.     location /lala {
  59.         proxy_pass "http://test.com:9007";
  60.         access_log /var/log/nginx/22534976_Flo_flexmaint_lala.log;
  61.     }
  62. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top