ðòïåëôù 


  áòèé÷ 


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_pass http://127.0.0.1:8001;
šš š š š š 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.