nginx.conf 760 B

1234567891011121314151617181920212223242526272829303132333435
  1. user nginx;
  2. worker_processes 1;
  3. pid /var/run/nginx.pid;
  4. error_log /var/log/nginx/nginx.error.log warn;
  5. events {
  6. worker_connections 1024;
  7. }
  8. http {
  9. include /etc/nginx/mime.types;
  10. default_type application/octet-stream;
  11. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  12. '$status $body_bytes_sent "$http_referer" '
  13. '"$http_user_agent" "$http_x_forwarded_for"';
  14. access_log /dev/null;
  15. #access_log /var/log/dnmp/nginx.access.log main;
  16. # hide verson string
  17. server_tokens off;
  18. sendfile on;
  19. #tcp_nopush on;
  20. client_max_body_size 100M;
  21. keepalive_timeout 65;
  22. #gzip on;
  23. include /etc/nginx/conf.d/*.conf;
  24. }