Révision 80300379
Ajouté par Serghei Mihai il y a presque 9 ans
debian/share/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 |
=404; |
|
16 |
} |
|
17 |
|
|
18 |
location ~ ^/static/(.+) { |
|
19 |
root /; |
|
20 |
try_files /var/lib/u-auth/static/$1 |
|
21 |
/var/lib/u-auth/collectstatic/$1 |
|
15 |
/var/lib/u-auth/static/$1/$2 |
|
16 |
/var/lib/u-auth/collectstatic/$1/$2 |
|
22 | 17 |
=404; |
23 | 18 |
} |
24 | 19 |
|
... | ... | |
45 | 40 |
access_log /var/log/nginx/u-auth.example.org-access.log combined; |
46 | 41 |
error_log /var/log/nginx/u-auth.example.org-error.log; |
47 | 42 |
|
48 |
location ~ ^/static/(.+)$ { |
|
43 |
location ~ ^/static/([^/]+)/(.+)$ {
|
|
49 | 44 |
root /; |
50 |
try_files /var/lib/u-auth/static/$1 |
|
51 |
/var/lib/u-auth/collectstatic/$1 |
|
45 |
try_files /var/lib/u-auth/organizations/$1/static/$2 |
|
46 |
/var/lib/u-auth/static/$1/$2 |
|
47 |
/var/lib/u-auth/collectstatic/$1/$2 |
|
52 | 48 |
=404; |
53 | 49 |
} |
54 | 50 |
|
Formats disponibles : Unified diff
debian: nginx example update
Removed from .docs