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 - Mime-Type Configuration (Page 4 of 4 )
The last line in the configuration file (Listing 12-1),include "mimetypes.conf", tells LightTPD to include the mime-type configuration file. This configures LightTPD so that it responds with the correctContent-TypeHTTP header matching the requested file. For example, the web server sends the headerContent-Type: application/pdfwhen a browser requests a PDF file with the extension.pdf.
Save the configuration shown in Listing 12-2 inconfig/mimetypes.conf.
Note You can also use the mime-type listing found in LightTPD’s configuration template (doc/lighttpd.conf).
Please check back next time for the continuation of this article.
DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.