ПРОЕКТЫ 


  АРХИВ 


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]

worker processes Apache + Ngix под Windows


  • To: nginx-ru@xxxxxxxxx
  • Subject: worker processes Apache + Ngix под Windows
  • From: "itmans" <nginx-forum@xxxxxxxx>
  • Date: Tue, 23 Nov 2010 12:39:25 -0500
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To:Date; bh=v7MHDUnm7WhhiFapWuJPfm+da5QpFdhVUzLnhsccO74=; b=rgAc7lSQVSR708naXujBvpCkn6OiajDjbXYJLyPmHo3HnL40iUXP0TQ8w5tlWooD2yVZcV54dSzSh43HU/6tPrqBXnR/pwqIN75vcABn4VIJcoU+LqcIXSt0oa8wNeBA;

почему если поставить worker_processes больше 1
, Ngix перестает обращаться к Apache ?

worker_processes  1; 

pid        logs/nginx.pid;
events {
    worker_connections  1024;
}


http {
    include       mime.types;
    default_type  application/octet-stream;

    log_format  main  '$remote_addr - $remote_user [$time_local]
"$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log  logs/access.log  main;

    sendfile       off;
    tcp_nopush     on;
    tcp_nodelay    on;

    #keepalive_timeout  0;
    keepalive_timeout  65;

    #gzip  on;

    server {
        listen       80;
        server_name  .site2.ru ;

        access_log  logs/host.site2.log  main;

        # Main location
        location / {
            proxy_pass         http://127.0.0.2:8080/;
            proxy_redirect     off;

            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    2m;

            proxy_connect_timeout      90;
            proxy_send_timeout         90;
            proxy_read_timeout         90;

            proxy_buffer_size          4k;
            proxy_buffers              4 512k;
            proxy_busy_buffers_size    1m;
            proxy_temp_file_write_size 1m;
        }
    }

    server {
        listen       80;
        server_name  .site3.ru;

        access_log  logs/host.site3.log  main;

        # Main location
        location / {
            proxy_pass         http://127.0.0.3:8080/;
            proxy_redirect     off;

            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    2m;

            proxy_connect_timeout      90;
            proxy_send_timeout         90;
            proxy_read_timeout         90;

            proxy_buffer_size          4k;
            proxy_buffers              4 512k;
            proxy_busy_buffers_size    1m;
            proxy_temp_file_write_size 1m;
        }
    }

    server {
        listen       80;
        server_name  .site4.ru;

        access_log  logs/host.access_site4.log  main;

        # Main location
        location / {
            proxy_pass         http://127.0.0.4:8080/;
            proxy_redirect     off;

            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    2m;

            proxy_connect_timeout      90;
            proxy_send_timeout         90;
            proxy_read_timeout         90;

            proxy_buffer_size          4k;
            proxy_buffers              4 512k;
            proxy_busy_buffers_size    1m;
            proxy_temp_file_write_size 1m;
        }
    }

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


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


 




Copyright © Lexa Software, 1996-2009.