nginx.conf 741 B

123456789101112131415161718192021222324252627282930313233343536
  1. user nginx;
  2. worker_processes auto;
  3. error_log /var/log/nginx/error.log warn;
  4. pid /var/run/nginx.pid;
  5. events {
  6. worker_connections 20480;
  7. }
  8. http {
  9. include /etc/nginx/mime.types;
  10. default_type application/octet-stream;
  11. fastcgi_buffer_size 128k;
  12. fastcgi_buffers 256 16k;
  13. client_body_buffer_size 1024k;
  14. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  15. '$status $body_bytes_sent "$http_referer" '
  16. '"$http_user_agent" "$http_x_forwarded_for"';
  17. access_log /var/log/nginx/access.log main;
  18. sendfile on;
  19. #tcp_nopush on;
  20. keepalive_timeout 65;
  21. gzip on;
  22. include /etc/nginx/conf.d/*.conf;
  23. }