Advertisement
Guest User

nginx.conf

a guest
Aug 22nd, 2013
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. user www-data;
  2. worker_processes 1;
  3. pid /var/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. sendfile on;
  17. # tcp_nopush on;
  18. client_max_body_size 16M;
  19. tcp_nodelay on;
  20. keepalive_timeout 65;
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement