nimopress

nginx.conf

Oct 28th, 2013
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. user www-data;
  2. worker_processes 1;
  3. pid /run/nginx.pid;
  4.  
  5. events {
  6. worker_connections 768;
  7. # multi_accept on;
  8. }
  9.  
  10. http {
  11.  
  12. ##
  13. # Basic Settings
  14. ##
  15.  
  16. client_max_body_size 128m;
  17. access_log off;
  18. sendfile on;
  19. tcp_nopush on;
  20. tcp_nodelay on;
  21. keepalive_timeout 5;
  22. keepalive_requests 100;
  23. reset_timedout_connection on;
  24. client_body_timeout 10;
  25. send_timeout 2;
  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. # Logging Settings
  37. ##
  38.  
  39. #access_log /var/log/nginx/access.log;
  40. error_log /var/log/nginx/error.log;
  41.  
  42. ##
  43. # HowToForge - File Cache Settings
  44. ##
  45.  
  46. open_file_cache max=5000 inactive=20s;
  47. open_file_cache_valid 30s;
  48. open_file_cache_min_uses 2;
  49. open_file_cache_errors on;
  50.  
  51. ##
  52. # HowToForge - Gzip Settings
  53. ##
  54.  
  55. gzip on;
  56. gzip_static on;
  57. gzip_disable "msie6";
  58. gzip_http_version 1.1;
  59. gzip_vary on;
  60. gzip_comp_level 6;
  61. gzip_proxied any;
  62. gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript text/x-js;
  63. gzip_buffers 16 8k;
  64.  
  65. ##
  66. # HowToForge - FastCGI Cache
  67. ##
  68.  
  69. fastcgi_cache_path /var/cache/nginx levels=1:2 keys_zone=microcache:10m max_size=100m inactive=60m;
  70.  
  71. ##
  72. # nginx-naxsi config
  73. ##
  74. # Uncomment it if you installed nginx-naxsi
  75. ##
  76.  
  77. #include /etc/nginx/naxsi_core.rules;
  78.  
  79. ##
  80. # nginx-passenger config
  81. ##
  82. # Uncomment it if you installed nginx-passenger
  83. ##
  84.  
  85. #passenger_root /usr;
  86. #passenger_ruby /usr/bin/ruby;
  87.  
  88. ##
  89. # Virtual Host Configs
  90. ##
  91.  
  92. include /etc/nginx/conf.d/*.conf;
  93. include /etc/nginx/sites-enabled/*;
  94.  
  95.  
  96. }
Advertisement
Add Comment
Please, Sign In to add comment