nginx/wcs: search for static files in the 'tenants' directory (#63638)
This commit is contained in:
parent
2e895c30fd
commit
4657dd0f1d
|
@ -2,11 +2,13 @@
|
|||
|
||||
{% block middle %}
|
||||
location ~ ^/static/(.+)$ {
|
||||
root /;
|
||||
try_files {{state_dir}}/$host/static/$1
|
||||
{{state_dir}}/$host/theme/static/$1
|
||||
{{state_dir}}/collectstatic/$1
|
||||
=404;
|
||||
root /;
|
||||
try_files {{state_dir}}/tenants/$host/static/$1
|
||||
{{state_dir}}/tenants/$host/theme/static/$1
|
||||
{{state_dir}}/$host/static/$1
|
||||
{{state_dir}}/$host/theme/static/$1
|
||||
{{state_dir}}/collectstatic/$1
|
||||
=404;
|
||||
}
|
||||
|
||||
location /static { alias {{state_dir}}/collectstatic/; }
|
||||
|
|
Loading…
Reference in New Issue