Score:0

Send SSL certificate without VirtualHost Apache2

cn flag

I have a local dev server running Apache 2.4.48 on Ubuntu Server 20.04 that has an SSL certificate that I want to send for all HTTPS (port 443) requests. I don't want to use VirtualHost for this as this would apply to all VirtualHosts using port 443, so I'd have to copy the SSL config to each one. Is there a way to always send the SSL params? I tried adding

SSLEngine on
SSLCertificateFile xyz.crt
SSLCertificateKeyFile abc.key

To security.conf in an <If "%{HTTPS} == 'on'"></If> block, but I got the error SSLEngine not allowed in <If> context. I tried leaving it out of the <If></If> block, which worked for HTTPS, but then HTTP no longer worked; Apache showed a Bad Request page.

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.