-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deny access to XML and PHTML files in pub/errors
For apache via .htaccess and in nginx sample configuration
- Loading branch information
1 parent
d7ac52b
commit a0566ab
Showing
2 changed files
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
Options None | ||
<FilesMatch "\.(xml|phtml)$"> | ||
Deny from all | ||
</FilesMatch> | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine Off | ||
</IfModule> |