From b331dc12ceddb09b8a6b7a9c246bdb766bad0edd Mon Sep 17 00:00:00 2001 From: Alexander Polynomdivision Date: Fri, 12 Oct 2018 17:36:17 +0200 Subject: [PATCH] nginx: Redirect / to /app/ --- server/nginx.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/nginx.conf b/server/nginx.conf index 5ffc4d8..228047d 100644 --- a/server/nginx.conf +++ b/server/nginx.conf @@ -61,7 +61,11 @@ http { } # There probably is a better solution using wildcards - location /app { + location = /app { + return 301 https://$host/app/; + } + + location = / { return 301 https://$host/app/; }