diff --git a/docs-site/nginx.conf b/docs-site/nginx.conf index 89d3c8e..cbb37fc 100644 --- a/docs-site/nginx.conf +++ b/docs-site/nginx.conf @@ -5,8 +5,12 @@ server { root /usr/share/nginx/html; index index.html; + location = /docs { + return 301 /docs/; + } + location / { - try_files $uri $uri/ /docs/index.html; + try_files $uri $uri/ /docs/index.html /index.html; } location ~* \.(?:css|js|map|jpg|jpeg|gif|png|svg|ico|webp|woff2?)$ {