Skip to content

Commit 935e1f2

Browse files
committed
Merge remote-tracking branch 'tsg/MC-29152' into borg-2.3.5
2 parents 258b6bf + 71c2ef9 commit 935e1f2

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

nginx.conf.sample

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ location / {
9393
}
9494

9595
location /pub/ {
96-
location ~ ^/pub/media/(downloadable|customer|import|theme_customization/.*\.xml) {
96+
location ~ ^/pub/media/(downloadable|customer|import|custom_options|theme_customization/.*\.xml) {
9797
deny all;
9898
}
9999
alias $MAGE_ROOT/pub/;
@@ -166,6 +166,11 @@ location /media/downloadable/ {
166166
location /media/import/ {
167167
deny all;
168168
}
169+
170+
location /media/custom_options/ {
171+
deny all;
172+
}
173+
169174
location /errors/ {
170175
location ~* \.xml$ {
171176
deny all;

pub/media/custom_options/.htaccess

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<IfVersion < 2.4>
2+
order deny,allow
3+
deny from all
4+
</IfVersion>
5+
<IfVersion >= 2.4>
6+
Require all denied
7+
</IfVersion>

0 commit comments

Comments
 (0)