SSL wildcard issue for wp multisite subdomains

my name is Daniel Kanchev and I work for SiteGround as a Senior Web Apps Engineer.

The described issue is pretty strange and I just configured a test WordPress Network on one SiteGround shared server. I did not face any similar issues and I used sub-domain names with a wildcard SSL certificate. Usually such issues are caused by Apache VHost misconfiguration problems. People often use the following setup (the default cPanel setup):

<VirtualHost 109.73.236.14:443>
    ServerName *.lumenco.ca
    ServerAlias *.lumenco.ca
    VirtualDocumentRoot /home/lumenco0/public_html/%1
    ServerAdmin [email protected]
    UseCanonicalName Off

The problem is usually caused by the fact that both ServerName and UseCanonicalName are not properly set. The correct configuration that works with WordPress is:

<VirtualHost 109.73.236.14:443>
    ServerName lumenco.ca
    ServerAlias *.lumenco.ca
    VirtualDocumentRoot /home/lumenco0/public_html/%1
    ServerAdmin [email protected]
    UseCanonicalName On

@Rarst, the issue is strange but this is something that is supported on shared servers and I’ve personally configured many WordPress apps on our shared hosting plans to use the same setup 🙂

Leave a Comment