Home arrow Ruby-on-Rails arrow Page 2 - Installing the Database for Application Deployment

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).

Author Info:
By: Apress Publishing
Rating: 5 stars5 stars5 stars5 stars5 stars / 2
August 06, 2010
  1. · Installing the Database for Application Deployment
  2. · Module Configuration
  3. · Log File Configuration
  4. · Mime-Type Configuration

print this article

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:

  1. 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.
  2. mod_access: Allows you to deny access to certain files that match a regular expression pattern. 
  3. mod_fastcgi: Used to communicate with external FastCGI processes. 
  4. 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. 
  5. 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.

Note  See the module documentation for more information. You can find links for each module’s documentation athttp://trac.lighttpd.net/trac/wiki/Docs.

blog comments powered by Disqus

- Ruby-on-Rails Faces Second Security Flaw in ...
- Ruby 2.0 Prepped for February 2013 Release
- Why LinkedIn Switched from Ruby on Rails
- Adding Style with Action Pack
- Handling HTML in Templates with Action Pack
- Filters, Controllers and Helpers in Action P...
- Action Pack and Controller Filters
- Action Pack Categories and Events
- Logging Out, Events and Templates with Actio...
- Action Pack Sessions and Architecture
- More on Action Pack Partial Templates
- Action Pack Partial Templates
- Displaying Error Messages with the Action Pa...
- Action Pack Request Parameters
- Creating an Action Pack Registration Form

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials