全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 2875|回复: 7
打印 上一主题 下一主题

[疑问] directadmin加nginx经常报502错误如何解决?

[复制链接]
跳转到指定楼层
1#
发表于 2010-10-31 11:51:00 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
directadmin加nginx经常报502错误如何解决?
配置如下
  1. user  apache;
  2. # no need for more workers in the proxy mode
  3. worker_processes  2;
  4. error_log  /var/log/nginx/error.log info;
  5. worker_rlimit_nofile 51200;
  6. events {
  7. worker_connections 51200; # increase for busier servers
  8. use epoll; # you should use epoll here for Linux kernels 2.6.x
  9. }
  10. http {
  11. server_name_in_redirect off;
  12. server_names_hash_max_size 2048;
  13. server_names_hash_bucket_size 256;
  14. include    mime.types;
  15. default_type  application/octet-stream;
  16. sendfile on;
  17. tcp_nopush on;
  18. tcp_nodelay on;
  19. keepalive_timeout  120;
  20. gzip on;
  21. gzip_vary on;
  22. gzip_http_version 1.1;
  23. gzip_min_length  1100;
  24. gzip_comp_level  3;
  25. gzip_buffers  4 32k;
  26. # gzip_types    text/plain application/x-javascript text/xml text/css;
  27. gzip_types    text/plain text/xml text/css application/x-javascript application/xml application/xml+rss text/javascript application/atom+xml;
  28. ignore_invalid_headers on;
  29. client_header_timeout  3m;
  30. client_body_timeout 3m;
  31. send_timeout     3m;
  32. reset_timedout_connection on;
  33. connection_pool_size  256;
  34. client_header_buffer_size 256k;
  35. large_client_header_buffers 4 256k;
  36. request_pool_size  32k;
  37. output_buffers   4 32k;
  38. postpone_output  1460;
  39. proxy_cache_path  /var/cache/nginx/cached levels=2:2 keys_zone=global:32m inactive=30m max_size=3G;
  40. proxy_temp_path  /tmp/nginx_proxy/;
  41. client_body_in_file_only on;
  42. client_max_body_size 100M;
  43. client_body_buffer_size 256k;
  44. log_format bytes "$bytes_sent";
  45. include "/etc/nginx/conf/vhosts/*.conf";
复制代码
2#
发表于 2010-10-31 11:55:09 | 只看该作者
没用da 所以不知道。。
3#
发表于 2010-10-31 12:10:29 | 只看该作者
帮楼主顶起来
4#
发表于 2010-10-31 12:15:00 | 只看该作者
da对nginx的支持不好吧
5#
 楼主| 发表于 2010-10-31 12:57:12 | 只看该作者
有知道解决办法的吗?
6#
发表于 2010-10-31 13:07:09 | 只看该作者
加大内存比例 于cpu时间?
楼主的头像不是一般的yd
7#
 楼主| 发表于 2010-10-31 13:22:02 | 只看该作者
原帖由 okyok 于 2010-10-31 13:07 发表
加大内存比例 于cpu时间?
楼主的头像不是一般的yd

改哪几个参数?
8#
发表于 2010-10-31 13:32:44 | 只看该作者
FastCGI配置呢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-11-11 23:49 , Processed in 0.082716 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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