From 51573754bfbf2961cd923961440ea95fa0c1cf6d Mon Sep 17 00:00:00 2001 From: Jakub Kadlčík Date: Aug 24 2018 10:00:19 +0000 Subject: Fix redirect from copr.fedoraproject.org to copr.fedorainfracloud.org --- diff --git a/roles/copr/frontend/templates/httpd/coprs_ssl.conf.j2 b/roles/copr/frontend/templates/httpd/coprs_ssl.conf.j2 index f440be8..176ad70 100644 --- a/roles/copr/frontend/templates/httpd/coprs_ssl.conf.j2 +++ b/roles/copr/frontend/templates/httpd/coprs_ssl.conf.j2 @@ -73,9 +73,10 @@ Listen 443 https SSLCertificateChainFile /etc/letsencrypt/live/{{ copr_frontend_public_hostname }}/fullchain.pem {% endif %} - ServerAlias {{ copr_frontend_public_hostname }} - - Redirect 302 / https://{{ copr_frontend_public_hostname }}/ + {% if not devel %} + ServerAlias copr.fedoraproject.org + Redirect 302 / https://copr.fedorainfracloud.org/ + {% endif %}