ПРОЕКТЫ 


  АРХИВ 


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]

fastcgi, Content-Length


  • To: "nginx-ru@xxxxxxxxx" <nginx-ru@xxxxxxxxx>
  • Subject: fastcgi, Content-Length
  • From: Прокофьев Павел Владимирович <p.prokofyev@xxxxxxxxxxxxxxx>
  • Date: Fri, 1 Apr 2011 05:19:56 +0000
  • Accept-language: ru-RU, en-US
  • Content-language: ru-RU
  • Thread-index: AcvwLHVDzlM1ahu7QEe/YQDmexW0Wg==
  • Thread-topic: fastcgi, Content-Length

В ответе nginx не возвращается header Content-Length в связке nginx/0.8.53 + spawn-fcgi.

 

        location /spbpost/ {

               fastcgi_pass    unix:/var/run/spawn-fcgi/spawn-fcgi.www-1;

               fastcgi_index   test.php;

               root /var/www/test/;

               fastcgi_param   SCRIPT_FILENAME    $document_root$fastcgi_script_name;

                include         fastcgi_params;

                chunked_transfer_encoding off;

                  }

 

curl -v http://192.168.127.7:8080/test/?operation=test

> GET /test/?operation=test HTTP/1.1

> User-Agent: curl/7.20.0 (x86_64-pc-linux-gnu) libcurl/7.20.0 OpenSSL/1.0.0c zlib/1.2.3

> Host: 192.168.127.7:8080

> Accept: */*

> 

< HTTP/1.1 200 OK

< Server: nginx/0.8.53

< Date: Fri, 01 Apr 2011 05:07:27 GMT

< Content-Type: text/html

< Connection: close

< X-Powered-By: PHP/5.2.13-pl0-gentoo

< 

* Closing connection #0

test

 

 

Как сделать чтобы в ответе присутствовал «Content-Length»?

 

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.