debian: nginx example update
parent
940f714d0d
commit
381ece347c
|
@ -9,14 +9,20 @@ server {
|
|||
access_log /var/log/nginx/u-auth.example.org-access.log combined;
|
||||
error_log /var/log/nginx/u-auth.example.org-error.log;
|
||||
|
||||
location ~ ^(.*)/static/(.+)$ {
|
||||
location ~ ^/([^/]*)/static/(.+)$ {
|
||||
root /;
|
||||
try_files /var/lib/u-auth/organizations/$1/static/$2
|
||||
/var/lib/u-auth/static/$2
|
||||
/var/lib/u-auth/collectstatic/$2
|
||||
=404;
|
||||
}
|
||||
|
||||
location ~ ^/static/(.+) {
|
||||
root /;
|
||||
try_files /var/lib/u-auth/static/$1
|
||||
/var/lib/u-auth/collectstatic/$1
|
||||
=404;
|
||||
}
|
||||
|
||||
|
||||
location ~ ^/media/(.+)$ {
|
||||
alias /var/lib/u-auth/media/$1;
|
||||
}
|
||||
|
|
Reference in New Issue