Re[3]: циклический ресет при закачке файлов

Vladimir Fursin fursin at optima.ua
Wed Apr 1 19:06:44 MSD 2009


Tuesday, March 31, 2009, 3:48:18 PM, you wrote:
> Это не дебаг - это у вас обычный error.log

> Вам надо
> - собрать nginx с опцией --with-debug
> - добавить в конфиг волшебное слово
>    debug_connection XX.XX.XX.XX.bmc-ea;
>    (возможно, понадобится ручками разрешить имя и вписать адрес)

tcpdump и отладочный лог за 1 секунду здесь: http://files.mail.ru/42HWRC

Конфиг:

worker_processes  8;
worker_rlimit_nofile 8192;
error_log  /tmp/debug_log  debug;
events {
    worker_connections  2048;
    debug_connection X1.X1.X1.X1;
}
http {
    include       mime.types;
    default_type  application/octet-stream;
    access_log logs/access.log combined;
    sendfile        on;
    keepalive_timeout  65;
    server {
        listen       80;
        server_name  download.example.com;
        rewrite ^/fetch/mp3/(.*)$ /nginx.php?path=$remote_addr-$1 last;
        error_page      404  /404.html;
        location = /404.html {
            root        html;
        }
        location /home {
            root        html;
        }
        location / {
            proxy_pass         http://127.0.0.1:8888;
            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       10m;
            client_body_buffer_size    128k;
            proxy_connect_timeout      90;
            proxy_send_timeout         90;
            proxy_read_timeout         90;
            proxy_buffer_size          4k;
            proxy_buffers              4 16k;
            proxy_busy_buffers_size    32k;
            proxy_temp_file_write_size 32k;
        }
        location /data-5 {
            root /;
            internal;
        }
        location /data-6 {
            root /;
            internal;
        }
        location /data-7 {
            root /;
            internal;
        }
        location /data-A {
            root /;
            internal;
        }
        location /nginx_status {
            stub_status on;
            access_log   off;
            allow 192.168.1.20;
            deny all;
        }
    }
}


С уважением, Владимир.
-- 
mailto:fursin at optima.ua








More information about the nginx-ru mailing list