We are using nginx as a reverse proxy before JBoss and Apache. Certain
requests are failing when passing through nginx.
showed errors like this:
2014/02/24 10:05:05 [error] 3409#0: *1744 upstream sent invalid chunked
response while reading response header from upstream, client:
server: appliance, request: “POST /archive/python/pulsar/browser/
Doing a little research I understood version 1.2.1 which we used had a
problem with chunked encoding so I upgraded to 1.4.5 (since this is the
official Debian wheezy-backports version). However, the same error
Do I have to turn something on to make this feature work? I did not find
anything in the documentation (only a config option
‘chunked_transfer_encoding’ to turn if off, if I understood correctly).
If it is any help, my test with wget (performed from “in front” of nginx
course) below produces the above “invalid chunked response” log error
time. I confirmed that the request performed from “behind” nginx works.
[email protected]:/home/wcrols/downloads/pacstmp$ wget -SO - --post-file
Connecting to 10.100.7.1:443… connected.
The certificate’s owner does not match hostname
10.100.7.1' HTTP request sent, awaiting response... HTTP/1.1 200 OK Server: nginx/1.4.5 Date: Mon, 24 Feb 2014 10:47:59 GMT Content-Type: text/xml Transfer-Encoding: chunked Connection: keep-alive Pragma: no-cache Cache-control: no-cache, no-store, must-revalidate, max-age=1, max-stale=0, post-check=0, pre-check=0, private Expires: Mon, 26 Jul 1997 05:00:00 GMT Vary: *,Accept-Encoding via: HTTP/1.1 apps Length: unspecified [text/xml] Saving to:STDOUT’
[ <=> ] 0 --.-K/s in 0s
2014-02-24 11:48:01 (0.00 B/s) - written to stdout 
Thank you for your help,