On Thu, Mar 29, 2018 at 11:58:09AM +0200, Markus Rosjat wrote:
> Hi there,
> 
> its not really an issue but I noticed if I want to substitute a path
> for the tls key or cert  I get a syntax error from httpd -n
> 
> So is there some special syntax for this or is it simply not
> possible to do something like
> 
> tls_key ="/path/to/key"
> tls_cert ="/path/to/cert"
> 
> server "domain.tld" {
> 
>  tls {
>       key $tls_key
>       certificate $tls_cert
>  }
> 
> }


Make sure that "/path/to/{ key,cert }" exists. 

Why not type "/path/to/{ key,cert }" inside the tls  declaration?
You donĀ“t have to use these filenames multiple times in httpd.conf. 
Only once. So why do you want to define a macro for them?

Reply via email to