X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=installation%2Fsdnc-web%2Fsrc%2Fmain%2Fresources%2Fhttp_site.conf;h=640668a100df7de2ec6a104bb6fe6a4d3d0ada19;hb=777395dad47d25403317639684f3591f844dc57b;hp=e42ecc7996ff049b852b425562671a77cab8f5ef;hpb=6862799321b85f364a3fa1be8639bed1de3b9d23;p=sdnc%2Foam.git diff --git a/installation/sdnc-web/src/main/resources/http_site.conf b/installation/sdnc-web/src/main/resources/http_site.conf index e42ecc79..640668a1 100644 --- a/installation/sdnc-web/src/main/resources/http_site.conf +++ b/installation/sdnc-web/src/main/resources/http_site.conf @@ -48,21 +48,24 @@ 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; } location /websocket { - resolver LOCALDNS; - proxy_pass SDNRPROTOCOL://$sdnrserver:SDNRPORT/websocket; + proxy_pass SDNRPROTOCOL://SDNRHOST:SDNRPORT/websocket; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } location @backend { - resolver LOCALDNS; - proxy_pass SDNRPROTOCOL://$sdnrserver:SDNRPORT; + proxy_pass SDNRPROTOCOL://SDNRHOST:SDNRPORT; } }