server { listen [::]:80; server_name dl.foss21.org; return 301 https://$server_name$request_uri; } server { listen [::]:443; server_name dl.foss21.org; location / { root /srv/www/htdocs/foss21.org/dl; fancyindex on; ssi on; } ssl_certificate /srv/webroot/foss21.org/ssl/fullchain.pem; ssl_certificate_key /srv/webroot/foss21.org/ssl/privkey.pem; ssl_trusted_certificate /srv/webroot/foss21.org/ssl/chain.pem; include conf.d/ssl_params; }