Welcome! Log In Create A New Profile

Advanced

fastcgi, Content-Length

Прокофьев Павел Владимирович
April 01, 2011 01:22AM
В ответе 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@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

fastcgi, Content-Length

Прокофьев Павел Владимирович April 01, 2011 01:22AM

Re: fastcgi, Content-Length

Igor Sysoev April 01, 2011 02:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 311
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready