4 ms·
While I think this is a very valuable resource, and patterns are always welcome by me, it should be noted that the Apache docs recommend against using .htaccess
by _cudgel 12y ago
While I think this is a very valuable resource, and patterns are always welcome by me, it should be noted that the Apache docs recommend against using .htaccess files due to the performance penalty.
From the docs (http://httpd.apache.org/docs/current/howto/htaccess.html http://httpd.apache.org/docs/current/howto/htaccess.html):
You should avoid using .htaccess files completely if you have access to httpd main server config file. Using .htaccess files slows down your Apache http server. Any directive that you can include in a .htaccess file is better set in a Directory block, as it will have the same effect with better performance.
- DrStalker 12y agoThese snippets should all be fine to go straight into a directory block, so it's still a really good resource,
- w8rbt 12y agoFor some hosting situations, the only control you would have would be through the .htaccess file.
- theblueprint 12y agoPSA: Authorization snippets are based on Apache 2.2 config syntax. Care should be taken to review, update and test Authorization config when upgrading to Apache 2.4 (http://httpd.apache.org/docs/2.4/upgrading.html http://httpd.apache.org/docs/2.4/upgrading.html).