|
How to Create an .htaccess file
You can change how Apache handles your documents with an .htaccess file. Such a file is named .htaccess and affects the behavior in the directory it is located in as well all nested directories (which can override that .htaccess file with their own.) To create an .htaccess file:
Display directory trees The apache configuration is such that directories without index files will not display the directory tree structure -- you'll just get a forbidden. For example, you want to be able to see the contents http://www.cs.hmc.edu/~mwaring/test even though you do not have an index.html file in ~mwaring/public_html/test.
If you want to explicitly state that apache should not display directry trees, add Options -Indexes instead. Display .pl files as text By default, .pl files are executed as cgi scripts by Apache. If you want them to be displayed as text instead:
Enable Server Side Includes For information on SSI see the Server Side Includes qref. To activate them in your directory, do the following:
Copyright (c) HMC Computer Science Department.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.1
or any later version published by the Free Software Foundation;
with the no Invariant Sections, with no
Front-Cover Texts, and with no Back-Cover Texts.
A copy of the license is included in the section entitled ``GNU Free Documentation License.''
HMC Computer Science Department Contact Information |