summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerghei Mihai <smihai@entrouvert.com>2015-06-01 14:14:33 (GMT)
committerSerghei Mihai <smihai@entrouvert.com>2015-06-01 15:52:32 (GMT)
commit381ece347c65f484748cedecc08d2aa8483980ad (patch)
tree7bc8f514949fe875dd1812ebde5c596367db0d31
parent940f714d0d182adfa4156b5df34a57fb5521c352 (diff)
downloadu-auth-381ece347c65f484748cedecc08d2aa8483980ad.zip
u-auth-381ece347c65f484748cedecc08d2aa8483980ad.tar.gz
u-auth-381ece347c65f484748cedecc08d2aa8483980ad.tar.bz2
debian: nginx example update
-rw-r--r--debian/nginx-example.conf12
1 files changed, 9 insertions, 3 deletions
diff --git a/debian/nginx-example.conf b/debian/nginx-example.conf
index 16a3832..bd8283b 100644
--- a/debian/nginx-example.conf
+++ b/debian/nginx-example.conf
@@ -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;
}