容器技术交流

 找回密码
 立即注册
查看: 2416|回复: 1

本站famp的nginx的conf文件

[复制链接]
发表于 2009-5-16 01:01:35 | 显示全部楼层 |阅读模式
  1. user nobody;
  2. worker_processes 4;

  3. #error_log logs/error.log;
  4. #error_log logs/error.log notice;
  5. #error_log logs/error.log info;            (这里错误文件前面不是打了# 号了吗??为什么系统还有错误日志呢?)
  6. #pid logs/nginx.pid;

  7. events {
  8. worker_connections 2048;
  9. }

  10. http {
  11. include mime.types;
  12. default_type application/octet-stream;

  13. #log_format main '$remote_addr - $remote_user [$time_local] $request '
  14. # '"$status" $body_bytes_sent "$http_referer" '
  15. # '"$http_user_agent" "$http_x_forwarded_for"';

  16. access_log /dev/null combined;
  17. #access_log logs/access.log main;

  18. sendfile on;
  19. #tcp_nopush on;

  20. #keepalive_timeout 0;
  21. keepalive_timeout 120;

  22. server_names_hash_bucket_size 128;

  23. client_max_body_size 600M;

  24. gzip on;

  25. include vhost.conf;

  26. }
复制代码
发表于 2009-5-16 09:36:56 | 显示全部楼层
nginx.conf里未打开就用默认的/var/log/nginx-error.log
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|URLOS ( 粤ICP备18087780号 )

GMT+8, 2024-5-5 00:02 , Processed in 0.034227 second(s), 27 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表