Score:0

Is it possible to generate a variable for SSLCertificateFile from HTTP_HOST (or something similar)?

dj flag

Normally in my vhost blocks I do:

Define SITE example.com

SSLCertificateFile /path/to/${SITE}.crt
SSLCertificateKeyFile /path/to/${SITE}.key

I'm wondering if it's possible to create a variable in Apache (without the www) that would correspond to my filenames for example.com.crt and example.com.key?

I assume not, but it's worth asking to consolidate my vhost blocks.

Score:1
in flag

Apache wants to read the certificates on startup, so you won't be able to define them runtime (i.e. during handshake).

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.