Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2015
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. [code]root@vm1:~# cat /etc/nginx/nginx.conf
  2. user www-data;
  3. worker_processes 8;
  4. pid /var/run/nginx.pid;
  5.  
  6. events {
  7. worker_connections 32768;
  8. multi_accept on;
  9. use epoll;
  10. }
  11.  
  12. http {
  13.  
  14. ##
  15. # Basic Settings
  16. ##
  17.  
  18. sendfile on;
  19. tcp_nopush on;
  20. tcp_nodelay on;
  21. keepalive_timeout 15;
  22. types_hash_max_size 2048;
  23. server_tokens off;
  24.  
  25. client_header_timeout 10m;
  26. client_body_timeout 10m;
  27. send_timeout 10m;
  28.  
  29.  
  30. proxy_connect_timeout 1m;
  31. proxy_send_timeout 1m;
  32. proxy_read_timeout 1m;
  33.  
  34. server_names_hash_bucket_size 64;
  35. # server_name_in_redirect off;
  36.  
  37. include /etc/nginx/mime.types;
  38. default_type application/octet-stream;
  39.  
  40. ##
  41. # Logging Settings
  42. ##
  43.  
  44. access_log off;
  45. #access_log /var/log/nginx/access.log;
  46. error_log /var/log/nginx/error.log;
  47.  
  48. ##
  49. # Gzip Settings
  50. ##
  51.  
  52. gzip on;
  53. gzip_disable "MSIE [1-6]\.(?!.*SV1)";
  54.  
  55. # gzip_vary on;
  56. # gzip_proxied any;
  57. # gzip_comp_level 6;
  58. # gzip_buffers 16 8k;
  59. # gzip_http_version 1.1;
  60. # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  61.  
  62. ##
  63. # nginx-naxsi config
  64. ##
  65. # Uncomment it if you installed nginx-naxsi
  66. ##
  67.  
  68. #include /etc/nginx/naxsi_core.rules;
  69.  
  70. ##
  71. # nginx-passenger config
  72. ##
  73. # Uncomment it if you installed nginx-passenger
  74. ##
  75.  
  76. #passenger_root /usr;
  77. #passenger_ruby /usr/bin/ruby;
  78.  
  79. ##
  80. # Virtual Host Configs
  81. ##
  82.  
  83. include /etc/nginx/conf.d/*.conf;
  84. include /etc/nginx/sites-enabled/*;
  85. }
  86. [/code]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement