using variables in certificate path names

Valentin V. Bartenev vbart at nginx.com
Tue Dec 15 09:53:42 UTC 2015


On Tuesday 15 December 2015 09:44:45 Aleksey Portnov wrote:
> Hello!
> 
> Is it possible and correct something like:
> 
> server {
>     listen 1.1.1.1:443 ssl;
> 
>     server_name     sitename.de sitename.fr  sitename.nl;
>    root /var/www/vhosts/Live/public_html;
> 
>    ssl_certificate /etc/ssl/web/$host.pem;
>    ssl_certificate_key /etc/ssl/web/$host.key;
> 
>   ...
>  #commont  part for all sites
>    ...
> }
> 

Currently it's not possible.  Certificates and keys
are loaded while reading configuration.

  wbr, Valentin V. Bartenev



More information about the nginx mailing list