From d04206df430c511420e405a3b99620005291c5ff Mon Sep 17 00:00:00 2001 From: Danielle De Leo Date: Wed, 24 Jan 2024 13:20:28 -0500 Subject: [PATCH] Add redirects configuration for Netlify This commit adds support for Netlify to proxy requests to the old downloads hosted on nginx.org. --- netlify.toml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 netlify.toml diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 00000000..bffd2eb6 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,15 @@ +# Used by Netlify for redirects. Lines with status code 200 are proxied and +# rewritten by Netlify. + +# From the previous nginx.conf +[[redirects]] + from = "/integration" + to = "/howto/integration" + status = 301 + +# To keep old download links alive +[[redirects]] + from = "/download/*" + to = "https://sources.nginx.org/unit/:splat" + status = 200 + headers = {X-From = "Netlify"}