From b0630225e5a1f6820055cd9c4f60eafdf48eae6e Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Fri, 17 Apr 2020 14:55:06 +0200 Subject: [PATCH] copr-fe: meh, fixup redirect to fedorainfracloud --- roles/copr/frontend-cloud/templates/httpd/coprs.conf | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/roles/copr/frontend-cloud/templates/httpd/coprs.conf b/roles/copr/frontend-cloud/templates/httpd/coprs.conf index bbc32150e6..0ba29d2a65 100644 --- a/roles/copr/frontend-cloud/templates/httpd/coprs.conf +++ b/roles/copr/frontend-cloud/templates/httpd/coprs.conf @@ -45,10 +45,6 @@ WSGIApplicationGroup %{GLOBAL} ServerName {{ copr_frontend_public_hostname }} -{% if not devel %} - ServerAlias copr.fedoraproject.org - Redirect 302 / https://copr.fedorainfracloud.org/ -{% endif %} SSLEngine on SSLProtocol {{ ssl_protocols }} @@ -116,6 +112,14 @@ WSGIApplicationGroup %{GLOBAL} RewriteRule ^/coprs/g/([^/]*)/([^/]*)/repo/epel-(.*)-(.*)/(.*)$ /coprs/g/$1/$2/repo/epel-$3/$5 [PT] +{% if not devel %} + + # redirect *.fedoraproject.org to *.fedorainfracloud.org + ServerAlias copr.fedoraproject.org + Redirect 302 / https://copr.fedorainfracloud.org/ + +{% endif %} + ExtendedStatus On