Skip to content

Commit d805372

Browse files
update nginx config
1 parent 58d9dba commit d805372

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

default.conf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ server {
44
index index.html;
55
error_page 403 404 @error4xx;
66
location @error4xx {
7-
rewrite ^/(.*)/ /$1/404.html last;
7+
rewrite ^/([^/]*) /$1/404.html last;
88
}
9+
location ~* ^/[^/]*/how-to-guides/template.html {
10+
return 301 $scheme://docs.stakater.com/mto/latest/kubernetes-resources/template/template.html;
11+
}
12+
# redirects issued by nginx will be relative
13+
absolute_redirect off;
914
}

0 commit comments

Comments
 (0)