Nginx big bug

we made two files

1.php and 2.php

1.php

{ <?php echo file_get_contents("http://127.0.0.1/2.php");?> }

2.php

{ <?php phpinfo();?> }

now you can see

run http://127.0.0.1/1.php

iis and apache work fine

but nginx is dead

why???

Posted at Nginx Forum:

i use

Win 2003 fastcgi php 5.3.8 mysql 5.5.21

nginx 1.1.16

Posted at Nginx Forum:

On Wed, 2012-03-07 at 13:07 -0500, catball123 wrote:

{ <?php phpinfo();?> }

now you can see

run http://127.0.0.1/1.php

Actually, we cannot see. That is a local IP address that is not
routable across the internet.

iis and apache work fine

but nginx is dead

why???

Please provide the following:

  1. your Nginx config
  2. some output from your nginx logs

Regards,
Cliff

run http://127.0.0.1/1.php

Actually, we cannot see. That is a local IP address that is not
routable across the internet.

===============================================================

no i mean example 127.0.0.1 ,it is not a real ip address…

you can try in your computer with win2003 + nginx

the bug only in the windows os + nginx

Posted at Nginx Forum:

On 03/07/2012 07:59 PM, catball123 wrote:

you can try in your computer with win2003 + nginx

the bug only in the windows os + nginx

Posted at Nginx Forum:
Re: nginx big bug


nginx mailing list
[email protected]
nginx Info Page
Hi.

Hmm, and if we don’t have a windows server 2003 to test, how can we help
you if you are not providing your configuration file, the modules you
enabled and your nginx logs ?

Thanks.


Cyril “Davromaniak” Lavier
KeyID 59E9A881
http://www.davromaniak.eu

access.log

======================================================================================

192.168.1.215 - - [07/Mar/2012:22:53:26 +0800] “GET /1.php HTTP/1.1” 499
0 “-” “Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20100101
Firefox/10.0.2”

192.168.1.25 - - [07/Mar/2012:22:53:35 +0800] “GET /2.php HTTP/1.0” 502
0 “-” “-”

192.168.1.215 - - [07/Mar/2012:22:54:54 +0800] “GET /1.php HTTP/1.1” 504
383 “-” “Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20100101
Firefox/10.0.2”

192.168.1.25 - - [07/Mar/2012:22:54:54 +0800] “GET /2.php HTTP/1.0” 504
383 “-” “-”

Posted at Nginx Forum:

error.log

==========================================================================

2012/03/07 22:53:35 [error] 9924#9964: *109 WSARecv() failed (10054: An
existing connection was forcibly closed by the remote host) while
reading response header from upstream, client: 192.168.1.25, server:
localhost, request: “GET /2.php HTTP/1.0”, upstream:
“fastcgi://127.0.0.1:9000”, host: “192.168.1.25”

2012/03/07 22:53:35 [error] 9924#9964: *111 WSARecv() failed (10054: An
existing connection was forcibly closed by the remote host) while
reading response header from upstream, client: 192.168.1.215, server:
localhost, request: “GET /phpMyAdmin/index.php HTTP/1.1”, upstream:
“fastcgi://127.0.0.1:9000”, host: “192.168.1.25”

2012/03/07 22:54:54 [error] 9924#9964: *114 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 reading response header from
upstream, client: 192.168.1.215, server: localhost, request: “GET /1.php
HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “192.168.1.25”

2012/03/07 22:54:54 [error] 9924#9964: *124 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 reading response header from
upstream, client: 192.168.1.25, server: localhost, request: “GET /2.php
HTTP/1.0”, upstream: “fastcgi://127.0.0.1:9000”, host: “192.168.1.25”

2012/03/07 22:59:34 [error] 9924#9964: *193 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 reading response header from
upstream, client: 192.168.1.215, server: localhost, request: “GET /1.php
HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “192.168.1.25”

2012/03/07 22:59:34 [error] 9924#9964: *203 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 reading response header from
upstream, client: 192.168.1.25, server: localhost, request: “GET /2.php
HTTP/1.0”, upstream: “fastcgi://127.0.0.1:9000”, host: “192.168.1.25”

Posted at Nginx Forum:

Hello!

On Wed, Mar 07, 2012 at 01:59:41PM -0500, catball123 wrote:

you can try in your computer with win2003 + nginx

the bug only in the windows os + nginx

Most likely you’ve only started only one php fastcgi process (used
php-cgi and forgot to define PHP_FCGI_CHILDREN?). You have to
start at least two for your example to work.

Maxim D.

anyway, nginx is a good soft

thx nginx

thx Cliff , Cyril “Davromaniak” Lavier

it is time to bed ,bye :slight_smile:

========================================================================

nginx.conf

========================================================================

#user nobody;
worker_processes 1;

#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;

#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        on;
#tcp_nopush     on;

#keepalive_timeout  0;
keepalive_timeout  65;

#gzip  on;

server {

    listen       80;
    server_name  localhost;

    #charset koi8-r;

    #access_log  logs/host.access.log  main;

    location / {
        root   v:/nginx/html;
        index  index.php index.html index.htm;
    }

    #error_page  404              /404.html;

    # redirect server error pages to the static page /50x.html
    #
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   html;
    }

    # proxy the PHP scripts to Apache listening on 127.0.0.1:80
    #
    #location ~ \.php$ {
    #    proxy_pass   http://127.0.0.1;
    #}

    # pass the PHP scripts to FastCGI server listening on

127.0.0.1:9000
#
location ~ .php$ {
root v:/nginx/html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME
/scripts$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME v:/nginx/html$fastcgi_script_name;
include fastcgi_params;
}

    # deny access to .htaccess files, if Apache's document root
    # concurs with nginx's one
    #
    #location ~ /\.ht {
    #    deny  all;
    #}
}


# another virtual host using mix of IP-, name-, and port-based

configuration
#
Server {
# listen 8000;
# listen somename:8080;
# server_name somename alias another.alias;

#    location / {
#        root   html;
#        index  index.html index.htm;
#    }
#}


# HTTPS server
#
#server {
#    listen       443;
#    server_name  localhost;

#    ssl                  on;
#    ssl_certificate      cert.pem;
#    ssl_certificate_key  cert.key;

#    ssl_session_timeout  5m;

#    ssl_protocols  SSLv2 SSLv3 TLSv1;
#    ssl_ciphers  HIGH:!aNULL:!MD5;
#    ssl_prefer_server_ciphers   on;

#    location / {
#        root   html;
#        index  index.html index.htm;
#    }
#}

}

Posted at Nginx Forum:

Hello!

On Mon, Mar 16, 2015 at 06:01:05PM -0400, antodas wrote:

client: 192.168.27.128, server: localhost, request: "GET

/testlink/lib/ajax/checkTCaseDuplicateName.php?_dc=1426533872356&name=%20Rotation%20view%3A%20Review%20offer%20within%20Accept%20rotation%20scre&testcase_id=0&testsuite_id=6382

HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000

Let me know how you guys resolved this error.

The message suggests there is something wrong with your backend,
not nginx. Have you tried restarting the backend only, not nginx?

(In either case please note that nginx on Windows is considered to
be an experimental version, see nginx for Windows.
If it doesn’t work for you, consider switching to other OS.)


Maxim D.
http://nginx.org/

8712#14268: *2060 WSARecv() failed (10054: An existing connection was
forcibly closed by the remote host) while reading response header from
upstream, client:0.xx.xx.0

Can any one help me on this.
I have site A , site B.
Site B is front end with nginx…
I am getting this error 10/3 times of request.

Posted at Nginx Forum:

Hello -,

I have the similar problem… !!

I installed testlink and running using nginx.

Sometimes… Testlink hangs … and I need to restart NGINX to get going.

6380#6120: *524 WSARecv() failed (10054: An existing connection was
forcibly
closed by the remote host) while reading response header from upstream,
client: 192.168.27.128, server: localhost, request: “GET
/testlink/lib/ajax/checkTCaseDuplicateName.php?_dc=1426533872356&name=%20Rotation%20view%3A%20Review%20offer%20within%20Accept%20rotation%20scre&testcase_id=0&testsuite_id=6382
HTTP/1.1”, upstream: "fastcgi://127.0.0.1:9000

Let me know how you guys resolved this error.

Thank you,
Anthonydas

Posted at Nginx Forum: