server { server_name file.congyu.org; root /var/www/files; # Add index.php to the list if you are using PHP index index.html index.htm index.nginx-debian.html; location / { try_files $uri $uri/ =404; } listen 443 ssl; ssl_certificate /etc/letsencrypt/live/congyu.org/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/congyu.org/privkey.pem; include /etc/letsencrypt/options-ssl-nginx.conf; ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; }