Here’s a quick tip for speeding up your Apache/Passenger powered Rails app. It’ll take you about 2 minutes, and I guarantee you’ll notice the speed-up.
- SSH onto your VPS
- Run the following commands: “a2enmod expires” and “a2enmod deflate”
Now, open up your Apache vhost config for your Rails app. Add the following:
Then, restart Apache by running: “/etc/init.d/apache2 restart”
Edit: Check the comments for some possible downsides… 😉