Skip to content

Commit e69c275

Browse files
committed
Issue geerlingguy#1368: Fix private files not accessable with nginx
1 parent ee8eaaf commit e69c275

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

provisioning/templates/nginx-vhost.conf.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ server {
7676
location ~ ^/sites/.*/files/styles/ {
7777
try_files $uri @rewrite;
7878
}
79+
location ~ ^(/[a-z\-]+)?/system/files/ {
80+
try_files $uri /index.php?$query_string;
81+
}
7982
{% endblock %}
8083

8184
{% block location_favicon -%}

0 commit comments

Comments
 (0)