Re: Проблема со скоростью закачки, куда копать ?

Alexey Mahotkin squadette at gmail.com
Wed Nov 14 16:51:10 MSK 2007


listen.conf покажите...

On Nov 14, 2007 1:53 PM, Alexey Sova <a.sova at peterhost.ru> wrote:
> Alexey Karagodov пишет:
> > конфиг в студию (nginx)
> >
> nginx.conf
>
> user  www www;
> worker_processes  2;
>
> error_log  /var/log/nginx/error_log warn;
> pid        /var/run/nginx.pid;
>
> events {
>     worker_connections  30000;
>     use kqueue;
> }
>
> http {
>     include                             mime.types;
>     default_type                        application/octet-stream;
>     sendfile                            on;
>     output_buffers                      8 32k;
>     keepalive_timeout                   0 0;
>     large_client_header_buffers         64 32k;
>     sendfile_max_chunk                  2M;
>     tcp_nopush      off;
>     tcp_nodelay     off;
>     open_file_cache          max=60000  inactive=20s;
>     open_file_cache_retest   120s;
>     open_file_cache_errors   on;
>
>     client_header_buffer_size           16k;
>     client_header_timeout               60;
>     client_body_timeout                 60;
>     ignore_invalid_headers              off;
>     proxy_buffering                     on;
>     server_names_hash_bucket_size       128;
>     server_names_hash_max_size          2048;
>     limit_zone one $binary_remote_addr  10m;
>
>
>
>     set_real_ip_from   127.0.0.0/8;
>     real_ip_header     X-Real-IP;
>
>     server {
>         listen          127.0.0.1:80;
>         server_name     localhost;
>         access_log      off;
>         error_log       /var/log/nginx/error_log error;
>         root /home/http/www;
>         location = /stub_status {
>              stub_status on;
>              allow       127.0.0.0/8;
>              deny        all;
>         }
>     }
>
>     include vhost.conf;
> }
>
> в vhost.conf записаны хосты вида
>
>
> server {
>   include listen.conf;
>   root        /home/username/www/site1/public_html;
>   location /  {
>
>     index index.shtml index.html index.htm index.wml;
>     limit_rate 20000k;
>   }
>
>   server_name servername.ru servername.spb.ru;
>   limit_conn   one                              5;
>   error_log   off;
>   access_log  /home/username/logs/access_log main;
> }
>
>
>
>



-- 
Алексей Махоткин
http://squadette.ru/


More information about the nginx-ru mailing list