選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

nginx.conf 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  12. '$status $body_bytes_sent "$http_referer" '
  13. '"$http_user_agent" "$http_x_forwarded_for"';
  14. access_log /var/log/nginx/access.log main;
  15. sendfile on;
  16. #tcp_nopush on;
  17. keepalive_timeout 65;
  18. #gzip on;
  19. #gzip_vary on;
  20. #gzip_min_length 10240;
  21. #gzip_proxied expired no-cache no-store private auth;
  22. #gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml;
  23. #gzip_disable "MSIE [1-6]\.";
  24. # Enable ngx_http_gzip_static_module for serving compressed files when possible.
  25. #gzip_static on;
  26. # Bring over default server config
  27. include /etc/nginx/conf.d/default.conf;
  28. }