Advertisement
Guest User

Untitled

a guest
Apr 17th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. server {
  2. listen 443 ssl http2;
  3. server_name www.vietbonus.com;
  4.  
  5. # SSL
  6. ssl_certificate /etc/letsencrypt/live/vietbonus.com/fullchain.pem;
  7. ssl_certificate_key /etc/letsencrypt/live/vietbonus.com/privkey.pem;
  8. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  9. ssl_prefer_server_ciphers on;
  10. ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
  11. rewrite ^(.*) https://vietbonus.com$1 permanent;
  12. }
  13. server {
  14. listen 80;
  15. server_name vietbonus.com www.vietbonus.com;
  16. rewrite ^(.*) https://vietbonus.com$1 permanent;
  17. }
  18. server {
  19. listen 2313 ssl http2;
  20. access_log off;
  21. log_not_found off;
  22. error_log off;
  23. root /home/vietbonus.com/private_html;
  24. index index.php index.html index.htm;
  25. server_name vietbonus.com;
  26.  
  27. error_page 497 https://$host:2313$request_uri;
  28. # SSL
  29. ssl_certificate /etc/letsencrypt/live/vietbonus.com/fullchain.pem;
  30. ssl_certificate_key /etc/letsencrypt/live/vietbonus.com/privkey.pem;
  31. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  32. ssl_prefer_server_ciphers on;
  33. ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
  34.  
  35. auth_basic "Restricted";
  36. auth_basic_user_file /home/vietbonus.com/private_html/vietbonus/.htpasswd;
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement