parent
75ab7a7bab
commit
8030037984
|
@ -9,16 +9,11 @@ server {
|
||||||
access_log /var/log/nginx/u-auth.example.org-access.log combined;
|
access_log /var/log/nginx/u-auth.example.org-access.log combined;
|
||||||
error_log /var/log/nginx/u-auth.example.org-error.log;
|
error_log /var/log/nginx/u-auth.example.org-error.log;
|
||||||
|
|
||||||
location ~ ^/([^/]*)/static/(.+)$ {
|
location ~ ^/static/([^/]+)/(.+)$ {
|
||||||
root /;
|
root /;
|
||||||
try_files /var/lib/u-auth/organizations/$1/static/$2
|
try_files /var/lib/u-auth/organizations/$1/static/$2
|
||||||
=404;
|
/var/lib/u-auth/static/$1/$2
|
||||||
}
|
/var/lib/u-auth/collectstatic/$1/$2
|
||||||
|
|
||||||
location ~ ^/static/(.+) {
|
|
||||||
root /;
|
|
||||||
try_files /var/lib/u-auth/static/$1
|
|
||||||
/var/lib/u-auth/collectstatic/$1
|
|
||||||
=404;
|
=404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,10 +40,11 @@ server {
|
||||||
access_log /var/log/nginx/u-auth.example.org-access.log combined;
|
access_log /var/log/nginx/u-auth.example.org-access.log combined;
|
||||||
error_log /var/log/nginx/u-auth.example.org-error.log;
|
error_log /var/log/nginx/u-auth.example.org-error.log;
|
||||||
|
|
||||||
location ~ ^/static/(.+)$ {
|
location ~ ^/static/([^/]+)/(.+)$ {
|
||||||
root /;
|
root /;
|
||||||
try_files /var/lib/u-auth/static/$1
|
try_files /var/lib/u-auth/organizations/$1/static/$2
|
||||||
/var/lib/u-auth/collectstatic/$1
|
/var/lib/u-auth/static/$1/$2
|
||||||
|
/var/lib/u-auth/collectstatic/$1/$2
|
||||||
=404;
|
=404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
COPYING
|
COPYING
|
||||||
README
|
README
|
||||||
debian/nginx-example.conf
|
|
||||||
|
|
Reference in New Issue