nginx 0.8.50 - загрузка страниц обрывается
hryachok
nginx-forum на nginx.us
Пн Сен 6 16:52:42 MSD 2010
VPS: CentOS 5.5 + Plesk 9.2 + Apache 2.2.3 + nginx 0.8.50 + php на
mod_fcgid
Страницы загружаются не полностью, т.е.
код обрывается. С правами в /usr/local/nginx/
все ок.
Убираю nginx - все нормально, страницы
грузятся ок. Нагрузка на сервере
минимум: load average: 0.88, 0.77, 0.80. Перерыл все
ПС, ничего не нашел.
Конфиг nginx:
[code]
user apache apache;
worker_processes 2;
timer_resolution 100ms; #custom
worker_rlimit_nofile 80000; #custom
worker_priority -5; #custom
error_log /var/log/nginx/error.log debug;
events {
worker_connections 50000;
use epoll;
}
http {
include mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] '
'"$request" $status $bytes_sent '
'"$http_referer" "$http_user_agent" '
'"$gzip_ratio"';
log_format download '$remote_addr - $remote_user [$time_local] '
'"$request" $status $bytes_sent '
'"$http_referer" "$http_user_agent" '
'"$http_range" "$sent_http_content_range"';
client_header_timeout 10m;
client_body_timeout 10m;
send_timeout 10m;
proxy_read_timeout 10m;
proxy_connect_timeout 75;
proxy_send_timeout 10m;
connection_pool_size 256;
client_header_buffer_size 1k;
large_client_header_buffers 4 8k;
request_pool_size 4k;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 0 40;
gzip on;
gzip_min_length 1024;
gzip_buffers 32 4k;
gzip_http_version 1.1;
gzip_proxied any;
gzip_comp_level 7;
gzip_types text/plain text/css application/x-javascript text/xml
application/xml application/xml+rss text/javascript;
#include /etc/nginx/sites/*.conf; #custom
include /var/www/vhosts/*/conf/nginx.conf;
#include webmail.conf;
ignore_invalid_headers off;
resolver 127.0.0.1;
server {
listen 80;
server_name localhost;
location / {
root html;
index index.php index.html index.htm;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}
[/code]
Еще инклудится proxy.conf:
[code]
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 40m;
client_body_buffer_size 10m;
proxy_connect_timeout 90;
proxy_send_timeout 900;
proxy_read_timeout 90;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
open_file_cache max=10241024 inactive=600s;
open_file_cache_valid 2000s;
open_file_cache_min_uses 1;
open_file_cache_errors on;
[/code]
Posted at Nginx Forum: http://forum.nginx.org/read.php?21,127629,127629#msg-127629
Подробная информация о списке рассылки nginx-ru