Skip to content

Commit

Permalink
Block direct access to ESDs
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Vogel committed Dec 17, 2014
1 parent ec8531e commit 7477bec
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions global/shopware.conf
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ location ^~ /files/documents/ {
deny all;
}

# Block direct access to ESDs, but allow the follwing download options:
# * 'PHP' (slow)
# * 'X-Accel' (optimized)
# Also see http://wiki.shopware.com/ESD_detail_1116.html#Ab_Shopware_4.2.2
location ^~ /files/552211cce724117c3178e3d22bec532ec/ {
internal;
}

# Breaks backend/media/ rewrite
#
#location ~ /(engine|files|templates|media)/ {
Expand Down

0 comments on commit 7477bec

Please sign in to comment.