Is there a difference between what headers php returns and what is set in nginx?
When I run:
curl -I mydomain.com
I get as expected (I have keep-alive off
)
Connection: close
But when I output the $_SERVER[HTTP_CONNECTION]
on that same domain I get:
Connection: keep-alive
I am not sure why php is returning keep-alive where everywhere else I pull the headers and it shows connection closed.