Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit e5bbafe

Browse files
committed
bug #621 make htaccess deny in src and app work with apache 2.4 (Tobion)
This PR was merged into the 2.3 branch. Discussion ---------- make htaccess deny in src and app work with apache 2.4 | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | |no | Tests pass? | yes | Fixed tickets | #602 | License | MIT Based on findings in https://drupal.org/node/1599774 Made it work under both apache 2.2 and 2.4. Commits ------- 38c2a50 make htaccess deny in src and app work with apache 2.4
2 parents f712e45 + 38c2a50 commit e5bbafe

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

app/.htaccess

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
deny from all
1+
<IfModule mod_authz_core.c>
2+
Require all denied
3+
</IfModule>
4+
<IfModule !mod_authz_core.c>
5+
Order deny,allow
6+
Deny from all
7+
</IfModule>

src/.htaccess

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
deny from all
1+
<IfModule mod_authz_core.c>
2+
Require all denied
3+
</IfModule>
4+
<IfModule !mod_authz_core.c>
5+
Order deny,allow
6+
Deny from all
7+
</IfModule>

0 commit comments

Comments
 (0)