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]

"upstream sent unsupported F astCGI protocol version"


  • To: nginx-ru@xxxxxxxxx
  • Subject: "upstream sent unsupported F astCGI protocol version"
  • From: Alexander Pashchenko <point212@xxxxxxxxx>
  • Date: Sun, 8 Mar 2009 18:25:13 +0300
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=FCv+TXDKaj4x2nEA9zzLWG9YCtd2PPD8RokHxzk9ZU8=; b=Vsa0HknI3nTsloeaxahSRoNCgJJzW/hUe1YJMhwKjhkC8F3MuLzW22+5TvwzldgiTs yH/IicrO58vc+Sb/BgLgaTNRxN/rly+xxOkg7viG7AG2MxuQUgfF6DOHcbXs+SsGfPa4 +CN/obVfJoY1NZWq9iitMRdWxn8YAdpNC/6vk=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=qG0ZsHGV39Aa/GRiLZiNVkFg0aMmBsm+y45ChAGc+C6IiYc492ToYAuDdhfPdV9Q7H dGdbeu6OkA61hAHGM6imIjCEGNZdcT5ycbLn/AhAzMBjU6NEXIjzMxDXi6ShrlNTPJTG nFS94DFZTNyzPybx8nbOjGh5NSAoZhVoV1CfE=

. -.
fastcgi ( C++).
nginx 0.3.54 FreeBSD.

Fedora 10. . , . Nginx 0.6.34 .

: 502 , :
2009/03/08 17:58:51 [error] 32151#0: *5 upstream sent unsupported FastCGI protocol version: 72 while reading response header from upstream, client: xx.xx.xx.xx, server: nx.melan, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nx.melan"

... - .
sysoev.ru 0.3.54 - .

- .
, ? - , ? - nginx ?

.
:
[root@localhost chat]# telnet 127.0.0.1 9000
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
HTTP/1.0 200 Ok Welcome to VOC
Server: VOC++ Voodoo chat Extension daemon ver cpp, modified by A!e% Babaev
Content-type: text/html
Expires: Mon, 08 Apr 1976 19:30:00 GMT+3
Connection: close
Keep-Alive: max=0
Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Pragma: no-cache

sorry, too long connecton attempt
Connection closed by foreign host.

nginx:

#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] $status '
# '"$request" $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;
tcp_nodelay on;

#gzip on;

server {
listen 80;
server_name nx.melan;

#charset koi8-r;


location / {
root /var/www;
index index.html index.htm index.php;
}

#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;
}

location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
# fastcgi_pass unix:/tmp/php-fastcgi.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param REDIRECT_STATUS 200;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
}
location /ch {
proxy_read_timeout 9999;
proxy_buffering off;

}

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

server {
listen 80;
server_name nx.melan/news;

location / {
root /var/www/news;
index index.html index.htm index.php;
}

location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/news$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param REDIRECT_STATUS 200;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
}

location ~ /\.ht {
deny all;
}
}
}


 




Copyright © Lexa Software, 1996-2009.