diff --git a/nginx-custom.conf b/nginx-custom.conf index 9a3b80c937b6cf269ac99734212caf090aa8a8fd..7e629efee612c20d15c51bdbda25d001680c09c2 100644 --- a/nginx-custom.conf +++ b/nginx-custom.conf @@ -1,5 +1,3 @@ - - # Expires map map $sent_http_content_type $expires { default off; @@ -14,20 +12,12 @@ listen 80; include /etc/nginx/mime.types; - server_name localhost; - + server_name {{ .Values.rooturl }}; location / { - root /usr/share/nginx/html/nfvportal/openslicehome; - index index.html; - } - - location ^~/nfvportal/ { - - root /usr/share/nginx/html; + root /usr/share/nginx/html/; index index.html index.htm; - try_files $uri $uri/ /nfvportal/index.html =404; + try_files $uri $uri/ /index.html =404; } expires $expires; gzip on; - }