Eric Montgomery
unread,Aug 9, 2008, 1:38:31 AM8/9/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
I'm not sure what is causing this, but I'm pretty sure it's either
django or mod_python.
I have Apache with mod_python running behind nginx which acts as a
reverse proxy. When I set up virtual hosts for a non-django site, I
can get Apache to serve static files with a Content-Length header.
However, from my django app, I get a "Transfer-Encoding: chunked"
header instead. The only difference between the two as far as server
configuration is that I have the '<Location "/">' directive with the
basic django/mod_python settings in the virtual host for the django
site. Otherwise, the settings are the same, so I have a feeling that
django or mod_python is responsible.
Also, and this is probably unrelated, Apache is returning a
"Connection: keep-alive" header even though I have "KeepAlive Off" in
the virtual host configuration.