Installing the Database for Application Deployment
In this second part of a multi-part article series, you'll learn how to install various parts of an application in preparation for deploying it online. This article is excerpted from chapter 12 of the book Practical Rails Projects, written by Eldon Alameda (Apress; ISBN: 1590597818).
Installing the Database for Application Deployment - Module Configuration (Page 2 of 4 )
The first line in Listing 12-1,server.modules, tells LightTPD which modules it should load and enable at startup. Similar to Apache modules, LightTPD modules extend the base functionality of LightTPD. In Listing 12-1, we enabled the following modules:
mod_rewrite: Allows you to rewrite, or modify, the URL that was used to access a server resource. For example, you could configuremod_rewriteso that requests for URLs ending with.htmlare stripped of the.htmlsuffix and processed by Ruby on Rails. For example,/catalog/index.htmlis rewritten to/catalog/index.
mod_access: Allows you to deny access to certain files that match a regular expression pattern.
mod_fastcgi: Used to communicate with external FastCGI processes.
mod_compress: Adds support fordeflate,gzip2, andbzip2 content compression. Enabling content compression allows you to save bandwidth and makes it faster for the browser to download the content.
mod_accesslog: Logs each request to a file or other supported destination.
Each module is configured separately and adds a set of options that can be used in the configuration file.