Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


   


   


   















      :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nginx -


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: nginx -
  • From: Aleksandr Sytar <sytar.alex@xxxxxxxxx>
  • Date: Sun, 5 Dec 2010 22:52:05 +0300
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=vmbGmpF2tW6XfcU7coq5U83l/Hb1jDbgI8/ijalSiDQ=; b=rfsRJxQdEhmhpVbv643WhZfw5MeUTdAVw2RP1y7z64wTuxU59TAy/AFCXEjX7a6dGu 7fAqc/s8RpbtIgovP6W9Y7RoJEw/2KUC/MBa6aAp3jb2gi9sQxLLpjoC9FkgoGEifHa4 29X77AV5NeAqewEHCptO8+0r5MmpG8Ckebudw=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=QXxuErv0gX799lsA1MZUCT/A0+K/mYXFQZQSKqWLxqx0QVwyTxGTGWYSH0+TaCP46k ykTWEMQPfzXpPKbDW46jWUaYjugvd2HxbI7Yftfymi1Rh7Mhg+HIeiSXXz1G3HC/JouN +2MauSENuSINp4O95a4aNBD5F+4Z8KMYjlQSI=
  • In-reply-to: <b3a4d376c6fd84bde29915d17c4ceedb.NginxMailingListRussian@xxxxxxxxxxxxxxx>
  • References: <b3a4d376c6fd84bde29915d17c4ceedb.NginxMailingListRussian@xxxxxxxxxxxxxxx>

5  2010. 18:59  Settler <nginx-forum@xxxxxxxx> :
>  ԣ   nginx 
>    
>  , 
>
> nginx+apache   = 20  
>   load average 3
> nginx+apache   = 2  
>   load average 20
> apache   ( nginx) = 8  
>   load average 8
> (    
> /server-status/)
...

>    if ($host ~ www\.(.*)) { set $p $1; }
>    if ($p ~* ^([a-z0-9-\.]+)\.site.ru$) { set $p site.ru; }

        
.      .

>    # access_log /var/log/httpd/access.log main;
>
>    # Main location
>    location / {
>      proxy_pass     http://ip:8080/;
>      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 32k;
>      proxy_busy_buffers_size  64k;
>      proxy_temp_file_write_size 64k;
>    }
>
>    # Static files location
>    location
> ~*^.+\.(jpg|jpeg|gif|png|css|zip|rar|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|tar|wav|bmp|rtf|js)$
>    {
>
>
>    root    /var/www/user/data/www/$p;
> }
>
>  }
> }
> [/code]
>
> Posted at Nginx Forum: 
> http://forum.nginx.org/read.php?21,155731,155731#msg-155731
>
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru@xxxxxxxxx
> http://nginx.org/mailman/listinfo/nginx-ru
>



-- 
Have a nice day
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.