So after I installed my blog on my own box. I have to say I'm the boss here :P -- Well I say this because I can modify anything I want the way I think it is good and fit for my needs.
I was doing a speedtest for my site and found that it is very slow, and the result at http://gtmetrix.com/ was really bad (40%!).
One of the recommendations from GTMetrix was to enable
KeepAlive and the box that I hosted on DigitalOcean was CentOS 6.4 with Apache.
Enabling HTTP Keep-Alive or HTTP persistent connections allow the same TCP connection to send and receive multiple HTTP requests, thus reducing the latency for subsequent requests.
To enable that was really simple. Simply edit this file
sudo vim /etc/httpd/conf/httpd.conf
And add this in the file (Any line should be fine)
Now you need to restart your
sudo service httpd restart
That's it folks, now you have
KeepAlive enabled on your server and it should improve your result on the speedtest :)
Subscribe to Ali Al Dallal's Blog
Get the latest posts delivered right to your inbox