nginx.conf 788 B

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