diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/.htaccess | 35 |
1 files changed, 23 insertions, 12 deletions
diff --git a/config/.htaccess b/config/.htaccess index 853aed187d3..13ca28758cf 100644 --- a/config/.htaccess +++ b/config/.htaccess @@ -1,14 +1,25 @@ -# line below if for Apache 2.4 -<ifModule mod_authz_core.c> -Require all denied -</ifModule> +# Section for Apache 2.4 to 2.6 +<IfModule mod_authz_core.c> + Require all denied +</IfModule> +<IfModule mod_access_compat.c> + Order Allow,Deny + Deny from all + Satisfy All +</IfModule> -# line below if for Apache 2.2 -<ifModule !mod_authz_core.c> -deny from all -</ifModule> +# Section for Apache 2.2 +<IfModule !mod_authz_core.c> + <IfModule !mod_access_compat.c> + <IfModule mod_authz_host.c> + Order Allow,Deny + Deny from all + </IfModule> + Satisfy All + </IfModule> +</IfModule> -# section for Apache 2.2 and 2.4 -<ifModule mod_autoindex.c> -IndexIgnore * -</ifModule> +# Section for Apache 2.2 to 2.6 +<IfModule mod_autoindex.c> + IndexIgnore * +</IfModule> |