download: drop http only dl/secondary/archive and redirect to https #2530

Open
kevin wants to merge 1 commit from https-downloads into main
2 changed files with 7 additions and 0 deletions

View file

@ -47,6 +47,7 @@
vars:
- site_name: secondary.fedoraproject.org
- cert_name: "{{wildcard_cert_name}}"
- sslonly: true
server_aliases:
- archive.fedoraproject.org
- archives.fedoraproject.org

View file

@ -4,6 +4,12 @@
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>