Improve directory protection for Apache 2.4
| | |
| | | mod_rewrite for Apache webserver and double check access to the above listed |
| | | directories and their contents is denied. |
| | | |
| | | NOTE: In Apache 2.4, support for .htaccess files has been disabled by |
| | | default. Therefore you first need to enable this in your Apache main or |
| | | virtual host config by with: |
| | | |
| | | AllowOverride all |
| | | |
| | | |
| | | UPGRADING |
| | | ========= |
| | |
| | | # deny webserver access to this directory |
| | | Deny from all |
| | | <ifModule mod_authz_core.c> |
| | | Require all denied |
| | | </ifModule> |
| | | <ifModule !mod_authz_core.c> |
| | | Deny from all |
| | | </ifModule> |
| | |
| | | # deny webserver access to this directory |
| | | Deny from all |
| | | <ifModule mod_authz_core.c> |
| | | Require all denied |
| | | </ifModule> |
| | | <ifModule !mod_authz_core.c> |
| | | Deny from all |
| | | </ifModule> |
| | |
| | | # deny webserver access to this directory |
| | | Deny from all |
| | | <ifModule mod_authz_core.c> |
| | | Require all denied |
| | | </ifModule> |
| | | <ifModule !mod_authz_core.c> |
| | | Deny from all |
| | | </ifModule> |