Advertisement
Guest User

nginx main config file

a guest
Jun 18th, 2014
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. user www-data;
  2. worker_processes 1;
  3. pid /run/nginx.pid;
  4.  
  5. events {
  6. worker_connections 64;
  7. # multi_accept on;
  8. }
  9.  
  10. http {
  11. ##
  12. # Basic Settings
  13. ##
  14.  
  15. sendfile on;
  16. tcp_nopush on;
  17. tcp_nodelay on;
  18. keepalive_timeout 65;
  19. types_hash_max_size 2048;
  20. server_tokens off;
  21.  
  22. # server_names_hash_bucket_size 64;
  23. # server_name_in_redirect off;
  24.  
  25. include /etc/nginx/mime.types;
  26. default_type application/octet-stream;
  27.  
  28. ##
  29. # Logging Settings
  30. ##
  31.  
  32. access_log /var/log/nginx/access.log;
  33. error_log /var/log/nginx/error.log;
  34.  
  35. ##
  36. # Gzip Settings
  37. ##
  38.  
  39. gzip on;
  40. gzip_disable "msie6";
  41.  
  42. gzip_vary on;
  43. gzip_proxied any;
  44. gzip_comp_level 6;
  45. gzip_buffers 16 8k;
  46. gzip_http_version 1.1;
  47. gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  48.  
  49. ##
  50. # Virtual Host Configs
  51. ##
  52.  
  53. include /etc/nginx/conf.d/*.conf;
  54. include /etc/nginx/sites-enabled/*;
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement