From 44312da34c46a5af8d1cedfd1875148b642312a1 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Mon, 20 Jun 2022 16:22:31 -0500 Subject: [PATCH] Redirect 404's on git.bbaovanc.com/bbaovanc/* to GitHub --- conf.d/git.bbaovanc.com | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/conf.d/git.bbaovanc.com b/conf.d/git.bbaovanc.com index a9f38a2..1099878 100644 --- a/conf.d/git.bbaovanc.com +++ b/conf.d/git.bbaovanc.com @@ -12,6 +12,17 @@ git.bbaovanc.com { handle { reverse_proxy localhost:81 { header_up X-Real-IP {remote_host} + + @404 status 404 + handle_response @404 { + handle /bbaovanc/* { + redir https://github.com{uri} temporary + } + + handle { + copy_response + } + } } }