ПРОЕКТЫ 


  АРХИВ 


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: Можно ли буферизацией разгрузить дисковую и процессор?


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: Можно ли буферизацией разгрузить дисковую и процессор?
  • From: "ProxyKZ" <nginx-forum@xxxxxxxx>
  • Date: Wed, 31 Oct 2012 07:16:07 -0400
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tigger.jlkhosting.com; s=x; h=Date:Sender:From:References:In-Reply-To:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=hYcHCzZ3G2rOzv80Ntrz0+a/NQxGBQJnb9KGM8kE8BI=; b=SgIWN0N2bRdN1hotosQF4E2iphzEi1qfZFaRjfPMlXI+FpklekuCrDK0/M0P+FHXpLbetqC4SJPks7YpEKy6XEmH65t801G0Io7Bh2FgEVKAM/LeRMquqpbWD8H+31dh;
  • In-reply-to: <50900272.5060502@kpi.ua>
  • References: <50900272.5060502@kpi.ua>

В смысле не видно? Потому что вот этого не указал:
    
        include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*;
        log_format  isp '$bytes_sent $request_length';
        server {
                listen 10.10.10.10:80;
                server_name smart.myserver.kz www.smart.myserver.kz;
                rewrite ^(/manager/.*)$ https://$host$1 permanent;
                error_page 404 = @fallback;
                location = /nginx_status {
                       stub_status on;
                       access_log off;
                }
                location ~* 
^/(webstat/|awstats|webmail/|myadmin/|manimg/|pgadmin/) {
                        proxy_pass http://10.10.10.10:81;
                        proxy_redirect http://smart.myserver.kz:81/ /;
                        proxy_set_header Host $host;
                        proxy_set_header X-Forwarded-For 
$proxy_add_x_forwarded_for;
                        proxy_set_header X-Real-IP $remote_addr;
                }
                location / {
                        proxy_pass http://10.10.10.10:81;
                        proxy_redirect http://smart.myserver.kz:81/ /;
                        proxy_set_header Host $host;
                        proxy_set_header X-Forwarded-For 
$proxy_add_x_forwarded_for;
                        proxy_set_header X-Real-IP $remote_addr;
                }
                location ~*
^.+\.(jpg|jpeg|gif|png|svg|js|tiff|mp3|ogg|mpeg|mov|avi|swf|ico|css|tgz|gz|rar|zip|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf)$
{
                        root /home/bio/www/smart.myserver.kz;
                        access_log 
/home/httpd-logs/smart.myserver.kz.access.log ;
                        access_log /home/nginx-logs/bio isp;
                }
                location @fallback {
                        proxy_pass http://10.10.10.10:81;
                        proxy_set_header Host $host;
                        proxy_set_header X-Forwarded-For 
$proxy_add_x_forwarded_for;
                        proxy_set_header X-Real-IP $remote_addr;
                }
        }

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?21,232383,232425#msg-232425

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.