Advertisement
ewwink

nginx ewwink gzip

Dec 16th, 2014
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. #user nobody;
  2. worker_processes 1;
  3.  
  4. #error_log logs/error.log;
  5. #error_log logs/error.log notice;
  6. #error_log logs/error.log info;
  7.  
  8. pid /usr/local/apps/nginx/var/log/nginx.pid;
  9.  
  10. events {
  11. worker_connections 1024;
  12. }
  13.  
  14. error_log /usr/local/apps/nginx/var/log/error_log debug;
  15.  
  16.  
  17. http {
  18. include mime.types;
  19. default_type application/octet-stream;
  20.  
  21. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  22. '$status $body_bytes_sent "$http_referer" '
  23. '"$http_user_agent" "$http_x_forwarded_for"';
  24.  
  25. access_log /usr/local/apps/nginx/var/log/web.access.log main;
  26.  
  27. sendfile on;
  28. #tcp_nopush on;
  29.  
  30. #keepalive_timeout 0;
  31. keepalive_timeout 65;
  32.  
  33. #gzip on;
  34. gzip on;
  35. gzip_disable "msie6";
  36.  
  37. gzip_comp_level 6;
  38. #gzip_comp_level 9;
  39. gzip_min_length 1100;
  40. gzip_buffers 16 8k;
  41. gzip_proxied any;
  42. # gzip_http_version 1.1;
  43. gzip_types text/plain application/xml text/css text/js text/xml application/x-javascript application/javascript text/javascript application/json application/xml+rss;
  44.  
  45. client_max_body_size 200M;
  46.  
  47. # If your domain names are long, increase this parameter.
  48. server_names_hash_bucket_size 64;
  49.  
  50. include /usr/local/apps/nginx/etc/conf.d/*.conf;
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement