From 8bea5c3bda391f2c2982447284e4132af6e863e4 Mon Sep 17 00:00:00 2001 From: clime Date: Mon, 11 Jun 2018 15:07:50 +0200 Subject: [PATCH] copr-frontend: temporary fix for Bug 1582294 - yum-plugin-copr doesn't work --- roles/copr/frontend/templates/httpd/coprs_ssl.conf.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/copr/frontend/templates/httpd/coprs_ssl.conf.j2 b/roles/copr/frontend/templates/httpd/coprs_ssl.conf.j2 index 18643d9c97..5d4612efcc 100644 --- a/roles/copr/frontend/templates/httpd/coprs_ssl.conf.j2 +++ b/roles/copr/frontend/templates/httpd/coprs_ssl.conf.j2 @@ -40,6 +40,10 @@ RewriteEngine on RewriteRule ^/coprs/sgallagh/cockpit-preview/repo/(.*)/.*\.repo$ /coprs/g/cockpit/cockpit-preview/repo/$1/ [R=301] RewriteRule ^/coprs/sgallagh/cockpit-preview/(.*)$ /coprs/g/cockpit/cockpit-preview/$1 [R=301] + + # https://bugzilla.redhat.com/show_bug.cgi?id=1582294 - yum copr enable does not work + RewriteRule ^/coprs/([^/]*)/([^/]*)/repo/epel-(.*)-(.*)/(.*)$ /coprs/$1/$2/repo/epel-$3/$5 [PT] + RewriteRule ^/coprs/g/([^/]*)/([^/]*)/repo/epel-(.*)-(.*)/(.*)$ /coprs/g/$1/$2/repo/epel-$3/$5 [PT]