summaryrefslogtreecommitdiff
path: root/etc/nginx/sites-enabled/test.site
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-11-29 02:17:18 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2018-11-29 02:17:18 +0100
commit5008ddaa11eda6f7e9633360960b5d0b4dfc3810 (patch)
tree8f7499e569961a4ec7d8d1a0f8d2ae321daf5073 /etc/nginx/sites-enabled/test.site
parent471cf8bd17dfa7bae14e34914164369527a3ed67 (diff)
downloaddeployment-5008ddaa11eda6f7e9633360960b5d0b4dfc3810.tar.gz
deployment-5008ddaa11eda6f7e9633360960b5d0b4dfc3810.tar.bz2
deployment-5008ddaa11eda6f7e9633360960b5d0b4dfc3810.zip
Auditor reports.
Put reports under 'test' and 'demo' home directories, and update nginx in order to serve those reports.
Diffstat (limited to 'etc/nginx/sites-enabled/test.site')
-rw-r--r--etc/nginx/sites-enabled/test.site5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/nginx/sites-enabled/test.site b/etc/nginx/sites-enabled/test.site
index 3b73466..a5158e5 100644
--- a/etc/nginx/sites-enabled/test.site
+++ b/etc/nginx/sites-enabled/test.site
@@ -70,6 +70,11 @@ server {
proxy_pass http://unix:/home/test/sockets/auditor.http:/;
}
+ location /reports {
+ rewrite "^/reports/(.*)" /$1 break;
+ root /home/test/reports;
+ }
+
location / {
# Redirection technique explainted at
# https://www.nginx.com/resources/wiki/start/topics/depth/ifisevil/