I am attempting to set up nginx for load balancing. HTTP works fine,
but I'm intermittently getting corrupted output back from HTTPS. The
responses contain garbage after the actual end of the document. There
appears to be some randomness/timing to this; the amount of garbage as
well as its contents varies. In addition to Web browsers I can
replicate this with "openssl s_client" using a single HTTP 1.0
request, no keep-alive or anything.
The load balancing machine is running nginx 0.5.14 on OpenBSD. The
balanced servers are Apache 2.2.3 and 2.0.54 on Linux.
Here is a minimal nginx.conf which demonstrates the problem: