Использование nginx для отдачи больших файлов

AleXXX V. NovikoFF mail at alexxx.ru
Fri Feb 16 11:36:44 MSK 2007


я тут где-то уже делился, ну вот еще раз:

worker_processes  1;

worker_rlimit_nofile 10240;
worker_rlimit_sigpending 32768;
worker_priority 5;

events {
    worker_connections  20480;
    use epoll;
}

http {

    geo $blacklist {
        default 0;
        include conf/blacklist.conf;
    }

    limit_zone   one  $binary_remote_addr  10m;
    limit_conn   one  10;

    include       conf/mime.types;
    default_type  application/octet-stream;

    log_format  main  '$remote_addr - $remote_user [$time_local - $upstream_response_time] $status '
                      '"$request" $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

    client_header_timeout  60;
    client_body_timeout    60;
    send_timeout           120;
    proxy_read_timeout     180;
    proxy_connect_timeout  60;
    proxy_send_timeout     180;

    msie_padding on;

    proxy_buffer_size          32k;
    proxy_buffers              64 512k;
    proxy_busy_buffers_size    1024k;
    proxy_temp_file_write_size 1024k;

    gzip on;
    gzip_min_length  10240;
    gzip_buffers     32 64k;
    gzip_types       text/html application/x-javascript text/css text/xml text/plain;

    client_header_buffer_size    4k;
    client_max_body_size 100000000;
    large_client_header_buffers  16 8k;

    sendfile       on;
    tcp_nopush     on;
    tcp_nodelay    on;

    output_buffers   32 256k;
    postpone_output  1460;

    lingering_time     30;
    lingering_timeout  6;
    reset_timedout_connection  on;

    keepalive_timeout  20;
    optimize_server_names on;

    server {
        listen       217.112.37.123:80 default backlog=1024 rcvbuf=131072 sndbuf=1048576 deferred;
        server_name  mults.spb.ru www.mults.spb.ru multiki.pp.ru www.multiki.pp.ru;



On Fri, 16 Feb 2007 11:08:49 +0300
support at sharedzilla.com wrote:

s> > On Fri, 16 Feb 2007 10:16:26 +0300 (MSK)
s> > Andrew Kopeyko <kaa at zvuki.ru> wrote:
s> 
s> > у меня один IDE ATA100 легко отдает 80 мбит :)
s> Отдаете большие файлы? Настройками не поделитесь? :)
s> 
s> 

-- 
AleXXX V. NovikoFF <mail at alexxx.ru>






More information about the nginx-ru mailing list