nginx on windows keeps hanging
asmith
nginx-forum at nginx.us
Sat May 19 19:04:15 UTC 2012
I'm new to this, please bare with me...
I'm running my fastcgi script using this .bat file:
@ECHO OFF
D:\environments\php\php-cgi -b 127.0.0.1:9000 -c
D:\environments\php\php.ini
ping 127.0.0.1 -n 1>NUL
echo .
echo .
echo .
EXIT
So for my upstream, I modified it to: (duplicated that line 4 times.
will that work?)
@ECHO OFF
D:\environments\php\php-cgi -b 127.0.0.1:8004 -c
D:\environments\php\php.ini
D:\environments\php\php-cgi -b 127.0.0.1:8005 -c
D:\environments\php\php.ini
D:\environments\php\php-cgi -b 127.0.0.1:8006 -c
D:\environments\php\php.ini
D:\environments\php\php-cgi -b 127.0.0.1:8007 -c
D:\environments\php\php.ini
ping 127.0.0.1 -n 1>NUL
echo .
echo .
echo .
EXIT
and this is my latest nginx.conf:
http {
include mime.types;
default_type application/octet-stream;
sendfile off;
keepalive_timeout 0;
upstream myproject {
server 127.0.0.1:8004;
server 127.0.0.1:8005;
server 127.0.0.1:8006;
server 127.0.0.1:8007;
}
server
{
listen 3334;
server_name localhost;
root E:/emergency/HTML/;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ \.php$ {
fastcgi_pass myproject;
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;
}
}
I get those error still, but I think they are less now. Still irritating
though. I tried an ajax shoutbox script which fires requests every few
seconds and opened up 4-5 browsers to see the reaction. I have upstream
timeout errors. This time they haven't paralyze nginx but the errors
appear and ajax requests pend without any response. Lots of same error
on port 8006.
2012/05/19 23:22:31 [error] 1092#3704: *126 upstream timed out (10060: A
connection attempt failed because the connected party did not properly
respond after a period of time, or established connection failed because
connected host has failed to respond) while connecting to upstream,
client: 127.0.0.1, server: localhost, request: "GET
/index.php?action=ajaxrequest HTTP/1.1", upstream:
"fastcgi://127.0.0.1:8006", host: "localhost:3334", referrer:
"http://localhost:3334/index.php"
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,226613,226655#msg-226655
More information about the nginx
mailing list