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
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:
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.
34876/0%Last update: 2010-09-29 13:27
Author: FAQ Admin
You can comment this FAQ