Advertisement
Guest User

Untitled

a guest
Jan 24th, 2016
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. user www-data;
  2. worker_processes 2;
  3. pid /run/nginx.pid;
  4. worker_rlimit_nofile 99999;
  5.  
  6.  
  7. events {
  8. worker_connections 1024;
  9. multi_accept on;
  10. }
  11.  
  12. http {
  13. fastcgi_cache_path /usr/share/nginx/cache/fcgi levels=1:2 keys_zone=microcache:10m max_size=1024m inactive=1h;
  14.  
  15. ##
  16. # Basic Settings
  17. ##
  18. client_body_timeout 12;
  19. client_header_timeout 12;
  20. keepalive_timeout 15;
  21. send_timeout 10;
  22. sendfile off;
  23. tcp_nopush on;
  24. tcp_nodelay on;
  25. types_hash_max_size 2048;
  26. # server_tokens off;
  27.  
  28. # server_names_hash_bucket_size 64;
  29. # server_name_in_redirect off;
  30.  
  31. include /etc/nginx/mime.types;
  32. default_type application/octet-stream;
  33.  
  34. ##
  35. # Logging Settings
  36. ##
  37.  
  38. access_log /var/log/nginx/access.log;
  39. error_log /var/log/nginx/error.log;
  40.  
  41. ##
  42. # Gzip Settings
  43. ##
  44.  
  45. gzip on;
  46. gzip_vary on;
  47. gzip_proxied any;
  48. gzip_comp_level 6;
  49. gzip_min_length 10240;
  50. gzip_buffers 16 8k;
  51. gzip_http_version 1.1;
  52. gzip_types text/plain text/css application/json applicationx-javascript text/xml application/xml application/xml+rss text/javascript;
  53. gzip_disable "MSIE [1-6]\.";
  54.  
  55. ##
  56. # nginx-naxsi config
  57. ##
  58. # Uncomment it if you installed nginx-naxsi
  59. ##
  60.  
  61. #include /etc/nginx/naxsi_core.rules;
  62.  
  63. ##
  64. # nginx-passenger config
  65. ##
  66. # Uncomment it if you installed nginx-passenger
  67. ##
  68.  
  69. #passenger_root /usr;
  70. #passenger_ruby /usr/bin/ruby;
  71.  
  72. ##
  73. # Virtual Host Configs
  74. ##
  75.  
  76. include /etc/nginx/conf.d/*.conf;
  77. include /etc/nginx/sites-enabled/*;
  78. }
  79.  
  80.  
  81. #mail {
  82. # # See sample authentication script at:
  83. # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
  84. #
  85. # # auth_http localhost/auth.php;
  86. # # pop3_capabilities "TOP" "USER";
  87. # # imap_capabilities "IMAP4rev1" "UIDPLUS";
  88. #
  89. # server {
  90. # listen localhost:110;
  91. # protocol pop3;
  92. # proxy on;
  93. # }
  94. #
  95. # server {
  96. # listen localhost:143;
  97. # protocol imap;
  98. # proxy on;
  99. # }
  100. #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement