Answer the question
In order to leave comments, you need to log in
How to attach SSL certificates to different openserver domains?
The question of such a plan.
There are several domains that stand on OpenServer. Bought SSL certificates for them.
How to bind SSL to different domains in the same openserver environment? I'm using Apache 2.4 + php 7.2-7.3 + nginx 1.17
Thanks in advance for your help! I searched on Google, looked, I ask you not to send it there)
I found only how to make and bind a self-signed certificate.
Answer the question
In order to leave comments, you need to log in
What version of OSPanel? On the example of OSPanel 5.3.7 x64 Apache_2.4-PHP_7.2-7.4 (without NGinx) installed in the root of the C:\ drive, canon-me.com domain , I do this:
1. Create a folder C:\OSPanel\cert\ ssl (cert folder and nested ssl).
2. In the file "Apache_2.4-PHP_7.2-7.3-x64_vhost.conf" change:
SSLCertificateFile "%sprogdir%/userdata/config/cert_files/server.crt"
SSLCertificateKeyFile "%sprogdir%/userdata/config/cert_files/server.key"
на
SSLCertificateFile "%sprogdir%/cert/ssl/%host%.crt"
SSLCertificateKeyFile "%sprogdir%/cert/ssl/%host%.key"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question