copr-fe: meh, fixup redirect to fedorainfracloud

This commit is contained in:
Pavel Raiskup 2020-04-17 14:55:06 +02:00 committed by Pierre-Yves Chibon
parent 4ddd100f98
commit b0630225e5

View file

@ -45,10 +45,6 @@ WSGIApplicationGroup %{GLOBAL}
<VirtualHost *:443>
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]
</VirtualHost>
{% if not devel %}
<VirtualHost *:443>
# redirect *.fedoraproject.org to *.fedorainfracloud.org
ServerAlias copr.fedoraproject.org
Redirect 302 / https://copr.fedorainfracloud.org/
</VirtualHost>
{% endif %}
<IfModule mod_status.c>
ExtendedStatus On
<Location /server-status>