Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

nginx.conf 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. user nginx;
  2. worker_processes 4;
  3. error_log /var/log/nginx/error.log warn;
  4. pid /var/run/nginx.pid;
  5. events {
  6. worker_connections 1024;
  7. }
  8. http {
  9. include /etc/nginx/mime.types;
  10. default_type application/octet-stream;
  11. client_max_body_size 16M;
  12. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  13. '$status $body_bytes_sent "$http_referer" '
  14. '"$http_user_agent" "$http_x_forwarded_for"';
  15. access_log /var/log/nginx/access.log main;
  16. sendfile on;
  17. #tcp_nopush on;
  18. keepalive_timeout 65;
  19. gzip on;
  20. gzip_vary on;
  21. gzip_min_length 10240;
  22. gzip_proxied expired no-cache no-store private auth;
  23. gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml;
  24. gzip_disable "MSIE [1-6]\.";
  25. # Enable ngx_http_gzip_static_module for serving compressed files when possible.
  26. gzip_static on;
  27. # Bring over default server config
  28. include /etc/nginx/conf.d/default.conf;
  29. }