Advertisement
Guest User

Untitled

a guest
Aug 26th, 2015
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. user www-data;
  2. worker_processes 8;
  3. pid /run/nginx.pid;
  4.  
  5. events {
  6. worker_connections 4096;
  7. multi_accept on;
  8. }
  9.  
  10. http {
  11.  
  12. ##
  13. # Basic Settings
  14. ##
  15.  
  16. access_log on;
  17. sendfile on;
  18. tcp_nopush on;
  19. tcp_nodelay on;
  20. keepalive_timeout 10;
  21. types_hash_max_size 2048;
  22. server_tokens off;
  23.  
  24. # server_names_hash_bucket_size 64;
  25. # server_name_in_redirect off;
  26.  
  27. include /etc/nginx/mime.types;
  28. default_type application/octet-stream;
  29.  
  30. ##
  31. # Logging Settings
  32. ##
  33.  
  34. access_log /var/log/nginx/access.log;
  35. error_log /var/log/nginx/error.log;
  36.  
  37. ##
  38. # Gzip Settings
  39. ##
  40.  
  41. gzip on;
  42. gzip_disable "msie6";
  43.  
  44. # gzip_vary on;
  45. # gzip_proxied any;
  46. # gzip_comp_level 6;
  47. # gzip_buffers 16 8k;
  48. # gzip_http_version 1.1;
  49. # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  50.  
  51. ##
  52. # nginx-naxsi config
  53. ##
  54. # Uncomment it if you installed nginx-naxsi
  55. ##
  56.  
  57. #include /etc/nginx/naxsi_core.rules;
  58.  
  59. ##
  60. # nginx-passenger config
  61. ##
  62. # Uncomment it if you installed nginx-passenger
  63. ##
  64.  
  65. #passenger_root /usr;
  66. #passenger_ruby /usr/bin/ruby;
  67.  
  68. ##
  69. # Virtual Host Configs
  70. ##
  71.  
  72. include /etc/nginx/conf.d/*.conf;
  73. include /etc/nginx/sites-enabled/*;
  74.  
  75. ssl_session_cache shared:SSL:10m;
  76. ssl_session_timeout 10m;
  77. ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
  78. ssl_prefer_server_ciphers on;
  79. ssl_ciphers kEECDH+AES128:kEECDH:kEDH:-3DES:kRSA+AES128:kEDH+3DES:DES-CBC3-SHA:!RC4:!aNULL:!eNULL:!MD5:!EXPORT:!LOW:!SEED:!CAMELLIA:!IDEA:!PSK:!SRP:!SSLv2;
  80. add_header Strict-Transport-Security "max-age=31536000;";
  81. ssl_stapling on;
  82. ssl_dhparam /etc/ssl/dhparam.pem;
  83. }
  84.  
  85.  
  86. #mail {
  87. # # See sample authentication script at:
  88. # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
  89. #
  90. # # auth_http localhost/auth.php;
  91. # # pop3_capabilities "TOP" "USER";
  92. # # imap_capabilities "IMAP4rev1" "UIDPLUS";
  93. #
  94. # server {
  95. # listen localhost:110;
  96. # protocol pop3;
  97. # proxy on;
  98. # }
  99. #
  100. # server {
  101. # listen localhost:143;
  102. # protocol imap;
  103. # proxy on;
  104. # }
  105. #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement