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