Turn on Keepalive to Improve Performance
Moonshine makes it easy configure the Keepalive setting. I host my RubyPlus Rails 4.2.6 app on Linode.
In Moonshine source code, file apache.rb, change the keep_alive to 'on':
defaults = {
:keep_alive => 'on',
Linode provides 2 GB of RAM for just $20/month. So, there is no reason not to turn on this setting. Especially for low traffic sites. This setting will keep the connection open so that all assets can be downloaded in one connection. This avoids opening multiple connection to the server by the browser to download the assets.
Summary
In this chapter, you learned how to configure Apache server to turn on the Keepalive to improve the performance of Rails apps.