Advertisement
emcniece

/etc/nginx/nginx.conf

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