Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2020
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name www.sub.domain.com sub.domain.com;
  4.  
  5. # redirects both www and non-www to https
  6. return 301 https://sub.domain.com$request_uri;
  7. }
  8. server {
  9.  
  10. listen 443 ssl http2;
  11. listen [::]:443 ssl http2;
  12. server_name sub.domain.com;
  13. ssl_certificate ssl/xxx.pem;
  14. ssl_certificate_key ssl/xxx.key;
  15. ssl_protocols TLSv1.2 TLSv1.3;
  16. ssl_prefer_server_ciphers on;
  17. ssl_ciphers 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256';
  18.  
  19. root /var/www/sub.domain.com/htdocs;
  20. index index.php index.html index.htm;
  21. include /etc/nginx/bots.d/ddos.conf;
  22. include /etc/nginx/bots.d/blockbots.conf;
  23.  
  24. include common/php73.conf;
  25. include common/acl.conf;
  26.  
  27. include common/locations-wo.conf;
  28. include /var/www/domain.com/conf/nginx/*.conf;
  29.  
  30.  
  31. ##
  32. # Nginx Bad Bot Blocker Includes
  33. # REPO: https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker
  34. ##
  35.  
  36.  
  37.  
  38.  
  39. ##
  40. # Nginx Bad Bot Blocker Includes
  41. # REPO: https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker
  42. ##
  43.  
  44.  
  45.  
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement