Knowledgebase
How to setup KeepAlive ?
Posted by v123shine, 03-24-2015, 05:19 AM | Good day,
I have little question about KeepAlive on centos 7.
How can I know my KeepAlive in On or Off ?
And How to change KeepAlive?
I have tried to open /etc/httpd/conf/httpd.conf but I can't find KeepAlive or KeepAliveTimeout.
Many thanks.
***
This is my httpd.conf file:
|
Posted by eriahosting, 03-24-2015, 05:39 AM | add this then restart apache
|
Posted by net, 03-24-2015, 05:40 AM | Moved > Hosting Security and Technology.
|
Posted by v123shine, 03-24-2015, 07:42 AM | eriahosting : Many thanks Eria for your help.
|
Posted by nisamudeen97, 03-24-2015, 07:49 AM | nisamudeen@d1:~$ curl -Iv http://www.gmail.com 2>&1 | grep -i 'connection #0'
* Connection #0 to host www.gmail.com left intact
* Closing connection #0
the above result shows its having "keep alive enabled"
nisamudeen@d1:~$
nisamudeen@d1:~$ curl -Iv http://www.spellcheckplus.com 2>&1 | grep -i 'connection #0'
* Closing connection #0
The above check on spellcheckplus shows keep alive not enabled
|
Posted by Srv24x7, 03-24-2015, 09:33 AM | Hi,
You will have to add the below section in the httpd.conf file
---------- ----------
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 100
---------- ----------
Restart the Apache after this and check.
|
|
Add to Favourites
Print this Article |
Also Read