Révision 381ece34
Ajouté par Serghei Mihai il y a presque 9 ans
debian/nginx-example.conf | ||
---|---|---|
9 | 9 |
access_log /var/log/nginx/u-auth.example.org-access.log combined; |
10 | 10 |
error_log /var/log/nginx/u-auth.example.org-error.log; |
11 | 11 |
|
12 |
location ~ ^(.*)/static/(.+)$ {
|
|
12 |
location ~ ^/([^/]*)/static/(.+)$ {
|
|
13 | 13 |
root /; |
14 | 14 |
try_files /var/lib/u-auth/organizations/$1/static/$2 |
15 |
/var/lib/u-auth/static/$2 |
|
16 |
/var/lib/u-auth/collectstatic/$2 |
|
17 | 15 |
=404; |
18 | 16 |
} |
19 | 17 |
|
18 |
location ~ ^/static/(.+) { |
|
19 |
root /; |
|
20 |
try_files /var/lib/u-auth/static/$1 |
|
21 |
/var/lib/u-auth/collectstatic/$1 |
|
22 |
=404; |
|
23 |
} |
|
24 |
|
|
25 |
|
|
20 | 26 |
location ~ ^/media/(.+)$ { |
21 | 27 |
alias /var/lib/u-auth/media/$1; |
22 | 28 |
} |
Formats disponibles : Unified diff
debian: nginx example update