Advertisement
Guest User

Untitled

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