Re: nginx -

Aleksandr Sytar sytar.alex gmail.com
5 22:52:05 MSK 2010


5  2010. 18:59  Settler <nginx-forum  nginx.us> :
>  ԣ   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  nginx.org
> http://nginx.org/mailman/listinfo/nginx-ru
>



-- 
Have a nice day


nginx-ru