Here is the problem I found out.
Front-End https Conf:
server {
listen 443;
…
location / {
proxy_pass http://backend;
proxy_set_header X-Forwarded-For
$proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
}
}
if use default proxy_buffer_size (not set it), when backend output
something bigger than 64k without content-length header. the frontend
https
will truncate the output to 64k.
After I set
proxy_buffer_size 1024 4k;
Everything works like normal. Using 0.8.29 .