Advertisement
Guest User

Untitled

a guest
Dec 27th, 2015
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1.  
  2. user www-data;
  3. worker_processes 2;
  4.  
  5. #error_log /var/log/nginx/logs/error.log;
  6. #error_log /var/log/nginx/logs/error.log notice;
  7. #error_log /var/log/nginx/logs/error.log info;
  8. #access_log off;
  9. #pid logs/nginx.pid;
  10.  
  11.  
  12. events {
  13. worker_connections 2048;
  14. }
  15.  
  16.  
  17. http {
  18.  
  19. access_log off;
  20. include mime.types;
  21. default_type application/octet-stream;
  22.  
  23. sendfile on;
  24. tcp_nopush on;
  25.  
  26. #keepalive_timeout 0;
  27. keepalive_timeout 65;
  28.  
  29. client_body_buffer_size 124K;
  30. client_header_buffer_size 1k;
  31. client_max_body_size 100m;
  32. large_client_header_buffers 4 32k;
  33.  
  34. ssl_session_cache shared:SSL:10m;
  35. ssl_session_timeout 10m;
  36. ssl_prefer_server_ciphers On;
  37. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  38. ssl_ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
  39.  
  40. map $http_cf_ipcountry $allow {
  41. default yes;
  42. IN no;
  43. CN no;
  44. PK no;
  45. RU no;
  46. BD no;
  47. UA no;
  48. }
  49.  
  50.  
  51. gzip on;
  52. # gunzip on;
  53. gzip_static on;
  54. gzip_disable "msie6";
  55. gzip_vary on;
  56. gzip_proxied any;
  57. gzip_comp_level 6;
  58. gzip_buffers 16 8k;
  59. gzip_http_version 1.1;
  60. gzip_types application/json application/x-javascript application/xml text/javascript text/plain text/css application/javascript text/xml application/xml+rss;
  61. include /etc/nginx/blacklist.conf
  62. include /etc/nginx/domain.com.ssl;
  63. # include /etc/nginx/uk.domain.com;
  64. # include /etc/nginx/ca.domain.com;
  65. # include /etc/nginx/au.domain.com;
  66. include /etc/nginx/anotherdomain.com;
  67. include /etc/nginx/refer-spam.conf;
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement