Frequently Asked Questions

These pages contain answers to the most common questions asked of Servlets.Net. To read an answer to a question, first select the category on the left, then the question on the right. If you don't find what you're looking for, feel free to send e-mail to our Support Department. If you would prefer, the entire FAQ is available on a single page.


 
General
Virtual Server
Java Servlets
Java Server Pages
Database
Internet
Dynamic Configuration Files
 
 
 
What is a dynamic configuration file (.htaccess file)?
How do I add new MIME types?
How do I add authentication to a file or directory?
 

 
 
 
A dynamic configuration file is an HTTP server configuration file that allows certain aspects of the server's configuration to be altered at run time. Dynamic configuration files are also known as a .htaccess files because they are typically named .htaccess. They are text files that contain server configuration directives and they can appear in any directory visible to your HTTP server.

Using dynamic configuration files, you can add new MIME type mappings, add user- and host-based authentication to files and directories, alter the form of server-parsed HTML used on your server, configure the text of messages returned when your server encounters an error, control URL mappings with redirections, and customize HTTP response headers. All of these capabilities are discussed elsewhere in this document.

The Apache documentation does not discuss dynamic configuration files explicitly, but the documentation for each configuration directive specifies whether the directive can appear in a .htaccess file. Visit the Apache run-time configuration directives document and select Options. You'll see that .htaccess appears in the Context: header. This signifies that the Option directive can appear in .htaccess files.

 


 
Copyright © 1998 - 2007 Servlets.Net Corporation. All rights reserved. Legal Notices.