显然Nginx现在支持Chunked,但是当平板电脑设备向Nginx发送Chunked请求时,我收到错误“411 Length required”.关于如何配置Nginx以支持Chunked的任何建议?
我正在使用v.1.3.9.
我知道一个类似的问题是asked,但它是在2010年之前,在Nginx支持chunked.
我的Nginx.conf:
master_process off;
worker_processes 1;
daemon off;
pid /usr/Nginx/logs/Nginx.pid;
events {
worker_connections 1024;
}
http {
ngao_filters_directory /usr/Nginx/filters;
include mime.types;
default_type application/octet-stream;
# prevent caching by client
add_header Cache-Control "no-store,no-cache";
sendfile on;
keepalive_timeout 65;
server {
listen 8081;
server_name localhost;
client_max_body_size 3m;
chunked_transfer_encoding on;
scgi_temp_path /usr/Nginx/scgi_temp;
uwsgi_temp_path /usr/Nginx/uwsgi_temp;
location / {
proxy_buffering off;
proxy_pass http://10.0.2.20:79;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
} } }
最佳答案