download: drop http only dl/secondary/archive and redirect to https #2530
2 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue