Advertisement
Guest User

Nginx Main Config

a guest
Nov 26th, 2012
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. ##Nginx Configuration
  2.  
  3. user www-data;
  4. worker_processes 4;
  5. pid /var/run/nginx.pid;
  6.  
  7. events {
  8. worker_connections 1024;
  9. }
  10. worker_rlimit_nofile 2048;
  11. http {
  12. ##
  13. # Basic Settings
  14. ##
  15.  
  16. sendfile on;
  17. tcp_nopush on;
  18. tcp_nodelay on;
  19.  
  20. types_hash_max_size 2048;
  21. server_tokens off;
  22. client_max_body_size 120m;
  23. client_body_buffer_size 128k;
  24. keepalive_timeout 5;
  25.  
  26. include /etc/nginx/mime.types;
  27. default_type application/octet-stream;
  28.  
  29. access_log /var/log/nginx/access.log;
  30. error_log /var/log/nginx/error.log;
  31.  
  32. ##
  33. # PHP 5.3
  34. ##
  35. upstream php53 {
  36. server 127.0.0.1:9000;
  37. }
  38.  
  39. gzip on;
  40. gzip_disable "msie6";
  41.  
  42. include /etc/nginx/sites-enabled/*;
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement