nginx forward prxoy problem when header contains 'Proxy-Connection: keep-alive'
Maxim Dounin
mdounin at mdounin.ru
Mon Jun 21 12:22:25 MSD 2010
Hello!
On Mon, Jun 21, 2010 at 04:08:25PM +0800, xuzheng wrote:
> hi, when i use nginx as a forward prxoy, some page can not be downloaded
> successfully.
nginx isn't forward proxy, and it know nothing about
Proxy-Connection. If server you are connecting to happens to keep
connection alive due to "Proxy-Connection: keep-alive" header -
the behaviour you see is quite expected.
You have to manually remove this header from request via something
like
proxy_set_header Proxy-Connection "";
Or, much better, just don't use nginx as forward proxy.
Maxim Dounin
More information about the nginx
mailing list