Advertisement
rei0d

nginx config file

Mar 3rd, 2015
459
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. # For more information on configuration, see:
  2. # * Official English Documentation: http://nginx.org/en/docs/
  3. # * Official Russian Documentation: http://nginx.org/ru/docs/
  4.  
  5. user nginx;
  6. worker_processes 1;
  7.  
  8. error_log /var/log/nginx/error.log;
  9. #error_log /var/log/nginx/error.log notice;
  10. #error_log /var/log/nginx/error.log info;
  11.  
  12. pid /var/run/nginx.pid;
  13.  
  14.  
  15. events {
  16. worker_connections 1024;
  17. }
  18.  
  19.  
  20. http {
  21. include /etc/nginx/mime.types;
  22. default_type application/octet-stream;
  23.  
  24. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  25. '$status $body_bytes_sent "$http_referer" '
  26. '"$http_user_agent" "$http_x_forwarded_for"';
  27.  
  28. access_log /var/log/nginx/access.log main;
  29.  
  30. sendfile on;
  31. #tcp_nopush on;
  32.  
  33. #keepalive_timeout 0;
  34. keepalive_timeout 65;
  35.  
  36. gzip on;
  37. gzip_disable "msie6";
  38.  
  39. gzip_vary on;
  40. gzip_proxied any;
  41. gzip_comp_level 6;
  42. gzip_buffers 16 8k;
  43. gzip_http_version 1.1;
  44. gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  45.  
  46. # Load config files from the /etc/nginx/conf.d directory
  47. # The default server is in conf.d/default.conf
  48. include /etc/nginx/conf.d/*.conf;
  49. include /etc/nginx/sites-enabled/*;
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement