summaryrefslogtreecommitdiffhomepage
path: root/cmd/gvisor-website
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/gvisor-website')
-rw-r--r--cmd/gvisor-website/main.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/cmd/gvisor-website/main.go b/cmd/gvisor-website/main.go
index dd6058081..be23854a1 100644
--- a/cmd/gvisor-website/main.go
+++ b/cmd/gvisor-website/main.go
@@ -36,8 +36,11 @@ var redirects = map[string]string{
"/pr": "https://github.com/google/gvisor/pulls",
// Redirects to compatibility docs.
- "/c": "/docs/user_guide/compatibility",
- "/c/linux/amd64": "/docs/user_guide/compatibility/linux/amd64",
+ "/c": "/docs/user_guide/compatibility/",
+ "/c/linux/amd64": "/docs/user_guide/compatibility/linux/amd64/",
+ // Redirect for old url
+ "/docs/user_guide/compatibility/amd64": "/docs/user_guide/compatibility/linux/amd64/",
+ "/docs/user_guide/compatibility/amd64/": "/docs/user_guide/compatibility/linux/amd64/",
// Deprecated, but links continue to work.
"/cl": "https://gvisor-review.googlesource.com",
@@ -230,5 +233,6 @@ func main() {
registerRebuild(nil)
registerStatic(nil, *staticDir)
+ log.Printf("Listening on %s...", *addr)
log.Fatal(http.ListenAndServe(*addr, nil))
}