aboutsummaryrefslogtreecommitdiffstats
path: root/installation/sdnc-web/src/main/resources
diff options
context:
space:
mode:
Diffstat (limited to 'installation/sdnc-web/src/main/resources')
-rw-r--r--installation/sdnc-web/src/main/resources/http_site.conf9
-rw-r--r--installation/sdnc-web/src/main/resources/https_site.conf8
2 files changed, 15 insertions, 2 deletions
diff --git a/installation/sdnc-web/src/main/resources/http_site.conf b/installation/sdnc-web/src/main/resources/http_site.conf
index e42ecc79..dd641418 100644
--- a/installation/sdnc-web/src/main/resources/http_site.conf
+++ b/installation/sdnc-web/src/main/resources/http_site.conf
@@ -48,8 +48,15 @@ server {
index index.html index.htm index.nginx-debian.html;
server_name _;
-
+
set $sdnrserver "SDNRHOST";
+
+ location ~ ^/$ {
+ return 301 /odlux/index.html;
+ }
+ location ~ /help/$ {
+ try_files /help/$args.json $uri;
+ }
location / {
try_files $uri $uri/ @backend;
}
diff --git a/installation/sdnc-web/src/main/resources/https_site.conf b/installation/sdnc-web/src/main/resources/https_site.conf
index 11ba7288..49afa079 100644
--- a/installation/sdnc-web/src/main/resources/https_site.conf
+++ b/installation/sdnc-web/src/main/resources/https_site.conf
@@ -69,7 +69,13 @@ server {
server_name _;
set $sdnrserver "SDNRHOST";
-
+
+ location ~ ^/$ {
+ return 301 /odlux/index.html;
+ }
+ location ~ /help/$ {
+ try_files /help/$args.json $uri;
+ }
location / {
try_files $uri $uri/ @backend;
}