diff --git a/docs/Makefile b/docs/Makefile index f74bf5705..77f14ee92 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 000000000..cbc954318 --- /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; +