nginx on windows keeps hanging

asmith nginx-forum at nginx.us
Sat May 19 04:13:05 UTC 2012


Thanks for your post.

I did the following changes, but I'm still getting this error. Note that
it is a local environment and I'm barely having 10 requests per second.
Probably I didn't get your point and circling around myself. I created 4
more server blocks listening for 8000 to 8003 ports. I tried it without
them and I couldn't open any page so I tried this one:

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

    sendfile        off;

    keepalive_timeout  0;

  upstream myproject {
    server 127.0.0.1:8000 weight=3;
    server 127.0.0.1:8001;
    server 127.0.0.1:8002;    
    server 127.0.0.1:8003;
  }

    server 
	{
        listen       3334;

        server_name  localhost;
        root   E:/emergency/HTML/;

        location / {
            autoindex  on;
            proxy_pass http://myproject;
        }

    }

    server 
	{
        listen       8000;

        server_name  localhost;
        root   E:/emergency/HTML/;

        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }

        location ~ \.php$ {

            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param PHP_FCGI_MAX_REQUESTS 0;
            fastcgi_param PHP_FCGI_CHILDREN 100;
            fastcgi_param  SCRIPT_FILENAME
$document_root$fastcgi_script_name;
            include        fastcgi_params;
        }
    }
    server 
	{
        listen       8001;

        server_name  localhost;
        root   E:/emergency/HTML/;

        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }

        location ~ \.php$ {

            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param PHP_FCGI_MAX_REQUESTS 0;
            fastcgi_param PHP_FCGI_CHILDREN 100;
            fastcgi_param  SCRIPT_FILENAME
$document_root$fastcgi_script_name;
            include        fastcgi_params;
        }
    }
    server 
	{
        listen       8002;

        server_name  localhost;
        root   E:/emergency/HTML/;

        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }

        location ~ \.php$ {

            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param PHP_FCGI_MAX_REQUESTS 0;
            fastcgi_param PHP_FCGI_CHILDREN 100;
            fastcgi_param  SCRIPT_FILENAME
$document_root$fastcgi_script_name;
            include        fastcgi_params;
        }
    }
    server 
	{
        listen       8003;

        server_name  localhost;
        root   E:/emergency/HTML/;

        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }

        location ~ \.php$ {

            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param PHP_FCGI_MAX_REQUESTS 0;
            fastcgi_param PHP_FCGI_CHILDREN 100;
            fastcgi_param  SCRIPT_FILENAME
$document_root$fastcgi_script_name;
            include        fastcgi_params;
        }
    }

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,226613,226652#msg-226652



More information about the nginx mailing list