diff --git a/nginx.conf b/nginx.conf index 776e3c89295e49b3d4b87021fd177ae6a60ad06e..b1a4d31d8d61c35ab78d0b999c673d28a23b5a2d 100644 --- a/nginx.conf +++ b/nginx.conf @@ -10,6 +10,11 @@ server { client_max_body_size 4G; + location = / { + absolute_redirect off; + return 301 /geocontrib/ ; + } + location /geocontrib/api { proxy_pass_header Set-Cookie; proxy_set_header X-NginX-Proxy true; @@ -46,7 +51,5 @@ server { index index.html; try_files $uri $uri/ /geocontrib/index.html; } - - }