ServerName dl.fedoraproject.org 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" ServerName dl.fedoraproject.org ServerAlias archive.fedoraproject.org archives.fedoraproject.org secondary.fedoraproject.org download-ib01.fedoraproject.org download-cc-rdu01.fedoraproject.org ServerAdmin webmaster@fedoraproject.org SSLEngine on SSLCertificateFile /etc/pki/tls/certs/{{ wildcard_crt_file }} SSLCertificateKeyFile /etc/pki/tls/private/{{ wildcard_key_file }} SSLCertificateChainFile /etc/pki/tls/certs/{{ wildcard_int_file }} SSLHonorCipherOrder On # https://fedorahosted.org/fedora-infrastructure/ticket/4101#comment:14 # If you change the protocols or cipher suites, you should probably update # modules/squid/files/squid.conf too, to keep it in sync. SSLProtocol {{ ssl_protocols }} SSLCipherSuite {{ ssl_ciphers }} RewriteEngine On RewriteCond %{REQUEST_URI} ^/pub/alt/virtio-win/.*$ RewriteRule .* - [F] # proxy all requests to anubis after ssl termination RequestHeader set "X-Real-Ip" expr=%{REMOTE_ADDR} RequestHeader set X-Forwarded-Proto "https" RequestHeader set "X-Http-Version" "%{SERVER_PROTOCOL}s" ProxyPreserveHost On ProxyRequests Off ProxyVia Off ProxyPass / http://[::1]:8923/ ProxyPassReverse / http://[::1]:8923/ # Once anubis has processed the request it sends it to port 3923 Listen 3923 http ServerName dl.fedoraproject.org ServerAlias archive.fedoraproject.org archives.fedoraproject.org secondary.fedoraproject.org download-ib01.fedoraproject.org download-cc-rdu01.fedoraproject.org ServerAdmin webmaster@fedoraproject.org RemoteIPHeader X-Real-Ip RemoteIPInternalProxy ::1 Include "conf.d/dl.fedoraproject.org/*.conf" ServerLimit 3200 MaxRequestWorkers 3200 MaxRequestsPerChild 10000