how configure nginx to talk http 1.1 to my backend servers

Cliff Wells cliff at develix.com
Wed Sep 23 23:36:47 MSD 2009



On Wed, 2009-09-23 at 14:14 -0500, Camilo Aguilar wrote:
> I want to think that I can use nginx as my reverse proxy and load
> balancer. If nginx can't speak http 1.1 to my backend servers I will
> have to use apache :( and I want nginx ! it's an amazing project and
> its community is great ! 

Nginx cannot currently use HTTP/1.1 for backends.   What you should look
into is getting Jetty to speak HTTP/1.0 (or more specifically, disable
chunked responses which I believe is possible via configuration option).
Alternatively, you could try Grizzly rather than Jetty (not a Java guy,
but I've used both interchangeably from Clojure so I assume it's
possible on the Java side as well).  Grizzly has the added bonus of not
spawning an insane number of threads as requests grow ;-)

Googling suggests that one of the triggers in Jetty for sending chunked
responses is a missing Content-length header, so you may try to
determine if that's what is causing your problem.    

In any case, if I were in your position, I think I'd take the question
to a Jetty forum as the real problem (and hence, solution) lies on that
end.

Regards,
Cliff








More information about the nginx mailing list