Created
May 30, 2015 04:57
-
-
Save bboalimoe/2c5587e7b693721aa123 to your computer and use it in GitHub Desktop.
nginx proxy buffering bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
将proxy_buffering 默认为on时,需设置 | |
proxy_buffers 20 1000k; | |
proxy_buffer_size 20k; | |
如果关闭proxy buffering,也可解决问题。 | |
location / { | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $http_host; | |
#### added per benoitc/gunicorn: Issue #790: | |
#### | |
proxy_buffering off; | |
# proxy_buffers 20 1000k; "when proxy_buffering is set to be on" | |
# proxy_buffer_size 20k; "when proxy_buffering is set to be on" | |
proxy_http_version 1.1; | |
proxy_set_header Connection ""; | |
#### | |
#### | |
proxy_redirect off; | |
proxy_pass http://app_server; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment