<div dir="ltr">Hi,<div><br></div><div>We are using nginx as a reverse proxy before JBoss and Apache. Certain POST requests are failing when passing through nginx. /var/log/nginx/error.log showed errors like this: </div><div>
<br></div><div>2014/02/24 10:05:05 [error] 3409#0: *1744 upstream sent invalid chunked response while reading response header from upstream, client: 10.100.7.100, server: appliance, request: "POST /archive/python/pulsar/browser/ HTTP/1.1", upstream: "<a href="https://10.100.7.3:443/archive/python/pulsar/browser/">https://10.100.7.3:443/archive/python/pulsar/browser/</a>", host: "10.100.7.1"</div>
<div><br></div><div><br></div><div>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 appears.</div>
<div>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).</div><div><br>
</div><div>If it is any help, my test with wget (performed from "in front" of nginx of course) below produces the above "invalid chunked response" log error each time. I confirmed that the request performed from "behind" nginx works.</div>
<div><br></div><div><div>wcrols@wim:/home/wcrols/downloads/pacstmp$ wget -SO - --post-file POST.xml --no-check-certificate <a href="https://10.100.7.1/archive/python/pulsar/browser/">https://10.100.7.1/archive/python/pulsar/browser/</a> </div>
<div>--2014-02-24 11:48:00-- <a href="https://10.100.7.1/archive/python/pulsar/browser/">https://10.100.7.1/archive/python/pulsar/browser/</a></div><div>Connecting to 10.100.7.1:443... connected.</div><div>The certificate's owner does not match hostname `10.100.7.1'</div>
<div>HTTP request sent, awaiting response... </div><div> HTTP/1.1 200 OK</div><div> Server: nginx/1.4.5</div><div> Date: Mon, 24 Feb 2014 10:47:59 GMT</div><div> Content-Type: text/xml</div><div> Transfer-Encoding: chunked</div>
<div> Connection: keep-alive</div><div> Pragma: no-cache</div><div> Cache-control: no-cache, no-store, must-revalidate, max-age=1, max-stale=0, post-check=0, pre-check=0, private</div><div> Expires: Mon, 26 Jul 1997 05:00:00 GMT</div>
<div> Vary: *,Accept-Encoding</div><div> via: HTTP/1.1 apps</div><div>Length: unspecified [text/xml]</div><div>Saving to: `STDOUT'</div><div><br></div><div> [ <=> ] 0 --.-K/s in 0s </div>
<div><br></div><div>2014-02-24 11:48:01 (0.00 B/s) - written to stdout [0]</div><div><br></div><div><br></div><div>Thank you for your help,</div><div>Wim</div><div><a href="http://www.esaturnus.com" target="_blank"><br></a></div>
</div></div>