I can't off hand think of why this would break anything, but

do let me know if you think it will.

Before we merge this, we will need to adjust things in mirrormanager to
not provide http links most likely (although I suppose the redirects
will work for http clients).

Signed-off-by: Kevin Fenzi kevin@scrye.com
This commit is contained in:
Kevin Fenzi
2025-09-17 10:15:32 -07:00
committed by kevin
parent 8474b29945
commit ff252cea44
2 changed files with 7 additions and 1 deletions

View File

@@ -3,7 +3,12 @@
ServerAlias archive.fedoraproject.org archives.fedoraproject.org secondary.fedoraproject.org download-ib01.fedoraproject.org download-cc-rdu01.fedoraproject.org
ServerAdmin webmaster@fedoraproject.org
TraceEnable Off
#
# redirect everyone to use https
#
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [L,R]
Include "conf.d/dl.fedoraproject.org/*.conf"
</VirtualHost>