foreach does not work

Saint Michael venefax at gmail.com
Tue Feb 21 07:25:23 UTC 2023


The question is, how do I use the foreach construct  in the nginx
configuration file?

> I am using openresty
> nginx -version
> nginx version: openresty/1.21.4.1
> This fails:
>
>
>
>>  foreach $domain in $server_name {
>>>
>>         ssl_certificate /etc/letsencrypt/live/$domain/fullchain.pem;
>>         ssl_certificate_key /etc/letsencrypt/live/$domain/privkey.pem;
>>     }
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20230221/4301fa4d/attachment.htm>


More information about the nginx mailing list