Welcome! Log In Create A New Profile

Advanced

Re: nginx on windows keeps hanging

May 19, 2012 12:13AM
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;
}
}
Subject Author Posted

nginx on windows keeps hanging

asmith May 18, 2012 01:35AM

Re: nginx on windows keeps hanging

itpp2012 May 18, 2012 07:32AM

Re: nginx on windows keeps hanging

asmith May 19, 2012 12:13AM

Re: nginx on windows keeps hanging

itpp2012 May 19, 2012 06:50AM

Re: nginx on windows keeps hanging

asmith May 19, 2012 03:04PM

Re: nginx on windows keeps hanging

itpp2012 May 19, 2012 04:33PM

Re: nginx on windows keeps hanging

asmith May 20, 2012 03:47AM

Re: nginx on windows keeps hanging

itpp2012 May 20, 2012 07:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 285
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready