ПРОЕКТЫ 


  АРХИВ 


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: Балансировка fastcgi


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: Балансировка fastcgi
  • From: "Rauan Maemirov" <rauan1987@xxxxxxxxx>
  • Date: Fri, 30 May 2008 17:55:13 +0600
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=DqKsJonrtAyU9mNcPqHrzcV9zAygKmztQ0BCq4skGII=; b=mcrII8HmV4hw8obOwZcJpXvu/e4QhAOltlsfvt02xKHvUQioRfztwNRsmc1fyYFd1uqcN2biPWJBmqV58RTkBgnO9+sX00c7AMmVmsDlSuTSs2+MHYJfFGP0pknOhQyNLVB3uWo0iNBzFrEEe865xips1XgWm4m4r0cPzDoinzo=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=ibWomTOU3YnwbN8CYoBmQX5TNfM80kE3kSxpXFMmXPvRqBmEZDz1R7Qd1ajzy0OiaPrPZ6YZpTfkbs5EttQ/AyAQzlTrpoDxl2uEkArWo3VwCNLQme17ObKlHQaIQwyC5jWodUxWXco1rXFBLH6ek5NdsUmAqfacaNKykOeeWlQ=
  • In-reply-to: <200805302244.59264.sleepy@xxxxxxxxxxxxx>
  • References: <200805302244.59264.sleepy@xxxxxxxxxxxxx>

   upstream backend {

        #ip_hash;
        #server http://192.169.1.1/
        server   unix:/var/log/php1.sock;
        server   unix:/var/log/php2.sock;
        server   unix:/var/log/php3.sock;
        server   unix:/var/log/php4.sock;
        server   unix:/var/log/php5.sock;
    }

       location ~ "\.php$" {
            ...
            fastcgi_pass   backend;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  /path/$fastcgi_script_name;
            include        fastcgi_params;
        }

Примерно вот так...
Подробнее http://sysoev.ru/nginx/docs/http/ngx_http_upstream.html

2008/5/30 sleepy <sleepy@xxxxxxxxxxxxx>:
Не могу понять как сделать балансировку между несколькими пулами fastcgi.
Может есть где пример конфигурации?

---
Sleepy



 




Copyright © Lexa Software, 1996-2009.