Advertisement
hotleadsingerguy

Nginx.conf

Jun 25th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. user www-data;
  2. worker_processes 3;
  3. worker_rlimit_nofile 20480;
  4. pid /run/nginx.pid;
  5.  
  6. events {
  7. worker_connections 5120;
  8. multi_accept on;
  9. use epoll;
  10. }
  11.  
  12. http {
  13.  
  14. ##
  15. # Basic Settings
  16. ##
  17.  
  18. sendfile off;
  19. output_buffers 1 512k;
  20. tcp_nopush off;
  21. tcp_nodelay on;
  22.  
  23. gzip on;
  24. gzip_disable "msie6";
  25. gzip_min_length 10240;
  26. gzip_proxied expired no-cache no-store private auth;
  27. gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/json application/xml;
  28. keepalive_timeout 65;
  29. #types_hash_max_size 2048;
  30. # server_tokens off;
  31.  
  32. # server_names_hash_bucket_size 64;
  33. # server_name_in_redirect off;
  34.  
  35. include /etc/nginx/mime.types;
  36. default_type application/octet-stream;
  37.  
  38. ##
  39. # SSL Settings
  40. ##
  41.  
  42. #ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
  43. #ssl_prefer_server_ciphers on;
  44.  
  45. ##
  46. # Logging Settings
  47. ##
  48.  
  49. #access_log /var/log/nginx/access.log;
  50. #error_log /var/log/nginx/error.log;
  51.  
  52. ##
  53. # Virtual Host Configs
  54. ##
  55.  
  56. include /etc/nginx/conf.d/*.conf;
  57. include /etc/nginx/sites-enabled/*;
  58.  
  59. server {
  60. #Websockets
  61. #proxy_http_version 1.1;
  62. #proxy_set_header Upgrade $http_upgrade;
  63. #proxy_set_header Connection "";
  64.  
  65. #Buffering off
  66. #proxy_redirect off;
  67. #proxy_buffering on;
  68. proxy_buffers 16 16k;
  69. proxy_buffer_size 16k;
  70. }
  71. }
  72.  
  73.  
  74. #mail {
  75. # # See sample authentication script at:
  76. # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
  77. #
  78. # # auth_http localhost/auth.php;
  79. # # pop3_capabilities "TOP" "USER";
  80. # # imap_capabilities "IMAP4rev1" "UIDPLUS";
  81. #
  82. # server {
  83. # listen localhost:110;
  84. # protocol pop3;
  85. # proxy on;
  86. # }
  87. #
  88. # server {
  89. # listen localhost:143;
  90. # protocol imap;
  91. # proxy on;
  92. # }
  93. #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement