From 6de5ca1e64407582debe01f17377cdb7bb8d70c5 Mon Sep 17 00:00:00 2001 From: Thatcher Peskens Date: Thu, 18 Apr 2013 16:00:18 -0700 Subject: [PATCH] Added redirect from old location of documentation (/documentation), these was the location when we were on github. --- docs/Makefile | 1 + docs/sources/nginx.conf | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 docs/sources/nginx.conf diff --git a/docs/Makefile b/docs/Makefile index f74bf5705e..77f14ee92f 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -51,6 +51,7 @@ docs: cp sources/dotcloud.yml $(BUILDDIR)/html/ cp sources/CNAME $(BUILDDIR)/html/ cp sources/.nojekyll $(BUILDDIR)/html/ + cp sources/nginx.conf $(BUILDDIR)/html/ @echo @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." diff --git a/docs/sources/nginx.conf b/docs/sources/nginx.conf new file mode 100644 index 0000000000..cbc954318c --- /dev/null +++ b/docs/sources/nginx.conf @@ -0,0 +1,4 @@ + +# rule to redirect original links created when hosted on github pages +rewrite ^/documentation/(.*).html http://docs.docker.io/en/latest/$1/ permanent; +