One of my server has $_SERVER['HTTP_CONNECTION'] is set to close need to set it to keep-alive in my phpinfo() any idea where to change that?

Recommended Answers

PHP doesn't manage the HTTP connection. This value just shows what it is set to. You'll need to check your webserver settings (Apache/IIS).

Jump to Post

httpd.conf See the Apache documentation for Keep-Alive.

Jump to Post

All 6 Replies

PHP doesn't manage the HTTP connection. This value just shows what it is set to. You'll need to check your webserver settings (Apache/IIS).

Thanks pritaeas, in Apache webserver which file i need to change for webserver settings.

httpd.conf See the Apache documentation for Keep-Alive.

I changed "KeepAlive Off" in that file but still it shows _SERVER['HTTP_CONNECTION'] = keep-alive in my phpinfo

Did you restart Apache?

ya i restart apache also.... but still the same result...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.