nginx seems to be replacing the Connection: close
header that upstream is sending, and replacing it with a Connection: keep-alive
header. Is there any way I can override it?
http {
upstream main {
server 127.0.0.1:8000;
}
server {
listen 443;
ssl on;
ssl_certificate server.crt;
ssl_certificate_key server.key;
location / {
proxy_pass http://main;
}
location /find {
proxy_pass http://main;
proxy_buffering off;
}
}
}