1. user www-data;
  2. worker_processes 4;
  3. pid /run/nginx.pid;
  4. events {
  5. worker_connections 1024;
  6. # multi_accept on;
  7. }
  8. http {
  9. ##
  10. # Basic Settings
  11. ##
  12. sendfile on;
  13. tcp_nopush on;
  14. tcp_nodelay on;
  15. keepalive_timeout 3;
  16. types_hash_max_size 2048;
  17. proxy_buffer_size 128k;
  18. proxy_buffers 4 256k;
  19. proxy_busy_buffers_size 256k;
  20. include /etc/nginx/mime.types;
  21. default_type application/octet-stream;
  22. ##
  23. # Logging Settings
  24. ##
  25. access_log /var/log/nginx/access.log;
  26. error_log /var/log/nginx/error.log;
  27. ##
  28. #php max upload limit cannot be larger than this
  29. ##
  30. client_max_body_size 13m;
  31. index index.php index.html index.htm;
  32. ##
  33. # Upstream to abstract backend connection(s) for PHP.
  34. ##
  35. upstream php {
  36. #this should match value of "listen" directive in php-fpm pool
  37. server unix:/tmp/php-fpm.sock;
  38. # server 127.0.0.1:9000;
  39. }
  40. gzip on;
  41. gzip_disable "msie6";
  42. ##
  43. # Virtual Host Configs
  44. ##
  45. include /etc/nginx/conf.d/*.conf;
  46. include /etc/nginx/sites-enabled/*;
  47. }