• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Apache sends wrong certificate.

Oswald

New Pleskian
Apache sends wrong certificate

I have two domains in two webspaces: example.org and example.net.

When I visit https://example.org, Apache uses the certificate that I have configured for the example.org webspace.
When I visit https://example.net, Apache uses the certificate that I have configured for the example.net webspace.
When I visit https://www.example.net, Apache uses the certificate that I have configured for the example.org webspace.

How do I convince Apache to use the certificate that I have configured for the example.net domain when somebody requests https://www.example.net?

When I try to add a new Subdomain www to the example.net domain, I get
Incorrect subdomain name www.example.net: the domain example.net already has the WWW prefix.
When I try to add a domain alias for the example.net domain, I get
Error: Incorrect name of domain alias www.example.net, this alias is already created for the domain example.net.

In DNS (also managed using Plesk), www.example.net is a CNAME for example.net
 
Last edited:
Workaround:

1. Delete the CNAME entry for www.example.net from DNS.
2. Create a new subdomain www of example.net. This will automatically create an A entry in the DNS.
3. Assign a certificate to the www.example.net subdomain the same way you did for example.net.

I wonder why Plesk is bold enough to automatically create the www.example.net CNAME entry when it cannot figure out the correct certificate to use.
 
Back
Top