I have multiple ssl sites on one server with nginx, and the virtual hosting works like this:
root /var/www/html/$host;
But in the certificate section, the $host
variable doesn't work:
ssl_certificate /etc/nginx/ssl/$host.crt;
ssl_certificate_key /etc/nginx/ssl/$host.key;
How can I solve this?