• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

SSL Certificate with Virtual Hosting

R

rp4000

Guest
I have a server with a number of domains virtual hosted. I want to install an SSL certificate on one of those domains. This will be the only certificate on the box. Only the domain the certificate has been issued for will use HTTPS.

When I configure the certificate for the given domain, it does not appear to be used. The browser reports a certificate for localhost. I've assigned it to the IP Pooling.

Does anybody have step by step instructions / troubleshooting info for how to make this work? It appears to me that Apache is not using the correct certificate.

Also, I notice that when I make changes through Plesk, the http.include file is not updated. If I modify the certificate, the httpd.include contains a reference to the previous sslcertificatefile which prevents httpd restarting.
 
I figured this one out. The ServerName is httpd.include is domain.com, the certificate is www.domain.com. Now it uses my certificate and not one that says localhost.
 
Back
Top