If you are running Rails 4.1.x with NginX and PUMA then this section may be a help to you.