From cbb48eff19b9a47561a46dddbdd10c0c5158b9a6 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Thu, 2 Jul 2020 12:34:42 -0700 Subject: [PATCH] pagure / docs.pagure.org: adjust SSSD redirects to work. apache redirectmatches are the worst. Signed-off-by: Kevin Fenzi --- roles/pagure/frontend/templates/0_pagure.conf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/roles/pagure/frontend/templates/0_pagure.conf b/roles/pagure/frontend/templates/0_pagure.conf index 335a2ab29c..f5b04c2dee 100644 --- a/roles/pagure/frontend/templates/0_pagure.conf +++ b/roles/pagure/frontend/templates/0_pagure.conf @@ -192,9 +192,10 @@ WSGIDaemonProcess paguredocs user=git group=git maximum-requests=1000 display-na # redirects for sssd docs. # https://pagure.io/fedora-infrastructure/issue/8995 - RedirectMatch ^/SSSD.sssd https://sssd.io - RedirectMatch ^/SSSD.sssd/index.html https://sssd.io/index.html - RedirectMatch ^/SSSD.sssd/(.*) https://sssd.io/docs/$1 + RedirectMatch ^/SSSD.sssd$ https://sssd.io + RedirectMatch ^/SSSD.sssd/$ https://sssd.io + RedirectMatch ^/SSSD.sssd/index.html https://sssd.io/index.html + RedirectMatch ^/SSSD.sssd/(.*) https://sssd.io/docs/$1 ExpiresActive On