Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Restoring the Apache config file after 10.2.4 update' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Restoring the Apache config file after 10.2.4 update
Authored by: greenmoss on Jan 05, '04 09:32:27AM
There are good reasons to be modifying the httpd.conf file instead of using local configurations as has been suggested by others in this thread. See the apache notes on .htaccess files and when not to use them here.

Specifically:
There are two main reasons to avoid the use of .htaccess files.

The first of these is performance. When AllowOverride is set to allow the use of .htaccess files, Apache will look in every directory for .htaccess files. Thus, permitting .htaccess files causes a performance hit, whether or not you actually even use them! Also, the .htaccess file is loaded every time a document is requested.

Further note that Apache must look for .htaccess files in all higher-level directories, in order to have a full complement of directives that it must apply. (See section on how directives are applied.) (...) And so, for each file access out of that directory, there are 4 additional file-system accesses, even if none of those files are present.


So for small sites where performance is not critical, modifying a local config would be fine. For large, performance-tuned sites this would not be a good idea.

[ Reply to This | # ]