ID #44

What options are configured with Apache and what can I do with .htaccess files?

Applies to: Grid System

Background information on .htaccess files is in the Apache documentation.

Apache on our system is already configured with:

Options Indexes SymLinksIfOwnerMatch ExecCGI IncludesNOEXEC ExecCGI
AllowOverride All

so that you can use .htaccess files to control a wide variety of webserver behavior. FileInfo, AuthConfig, Indexes, Limit and Options are already permitted by the default "AllowOverride All" directive.

If you try to alter any of the "Options" in an .htaccess file, you must be careful not to overwrite the Options above that are already set.

You do this by putting a plus or minus sign in front of the Option that you want to change. For example, if you want to get rid of the Option "Indexes", you would put this in an .htaccess file:

Options -Indexes

That would remove Indexes from the list above, but not touch any of the other Options that are already set. To add an Option, just list that Option with a + before it.

When putting file paths in .htaccess (for basic auth and such), be sure you know the true path to your home directory.

PHP values and PHP admin values

PHP directives will not work in your .htaccess files because Modwest runs PHP as a CGI.

Last update: 2010-09-29 13:27
Author: FAQ Admin
Revision: 1.2

Digg it! Share on Facebook Print this record Send FAQ to a friend Show this as PDF file
Please rate this FAQ:

Average rating: 2 (1 Vote)

completely useless 1 2 3 4 5 most valuable

You can comment this FAQ