File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,11 @@ location /media/downloadable/ {
159
159
location /media/import/ {
160
160
deny all;
161
161
}
162
+ location /errors/ {
163
+ location ~* \.xml$ {
164
+ deny all;
165
+ }
166
+ }
162
167
163
168
# PHP entry point for main application
164
169
location ~ ^/(index|get|static|errors/report|errors/404|errors/503|health_check)\.php$ {
@@ -198,6 +203,6 @@ gzip_types
198
203
gzip_vary on;
199
204
200
205
# Banned locations (only reached if the earlier PHP entry point regexes don't match)
201
- location ~* (\.php$|\.htaccess$|\.git) {
206
+ location ~* (\.php$|\.phtml$|\. htaccess$|\.git) {
202
207
deny all;
203
208
}
Original file line number Diff line number Diff line change 1
1
Options None
2
+ <FilesMatch "\.(xml|phtml)$" >
3
+ Deny from all
4
+ </FilesMatch >
2
5
<IfModule mod_rewrite.c >
3
6
RewriteEngine Off
4
7
</IfModule >
You can’t perform that action at this time.
0 commit comments