- 论坛徽章:
- 0
|
环境
源服务器使用apache作为web服务器
用nginx做代理分流配置如下
- server {
- listen 80;
- server_name yourdomain.com;
- location / {
- access_log off;
- proxy_pass http://yourvirtualserver;
- }
- }
复制代码 发觉从nginx服务器进入的用户在使用ftp上传文件时出现500错误,或者直接报ftp无法连接,但是在源服务器上使用ftp一切正常
日志错误为
- [Fri Nov 12 14:17:05 2010] [warn] [client 11.11.11.11] (104)Connection reset by peer: mod_fcgid: can't get data from http client, referer:
- [Fri Nov 12 14:21:21 2010] [warn] [client 111.111.111.111] mod_fcgid: stderr: PHP Warning: ftp_nlist() expects parameter 1 to be resource, boolean given in
-
复制代码 加大了fastcgi的超时时间无果,如下,- <IfModule mod_fcgid.c>
- AddHandler fcgid-script .php .php5
- SocketPath /tmp/fcgid.sock
- IdleTimeout 600
- ProcessLifeTime 3600
- MaxProcessCount 100
- MaxProcessCount 16
- DefaultMinClassProcessCount 5
- DefaultMaxClassProcessCount 16
- IPCConnectTimeout 1500
- IPCCommTimeout 3600
- </IfModule>
复制代码 求解 |
|