What happens

The "Request tenant SSL certificate" modal offers the option "Also request www.{tenant}", described as: "Adds www.{tenant} to the certificate so the www to non-www redirect works over SSL."

For regular sites this works, because Ploi generates a www → non-www redirect server block. For tenants, Ploi does not generate one: the tenant's NGINX config only contains server_name {tenant};, and no server block exists anywhere for www.{tenant}.

As a result, the HTTP-01 challenge for www.{tenant} falls through to the server's default vhost and returns 404. Because the challenge for one name fails, the whole certificate request fails, including the apex domain, which validated fine on its own.

Example

Site vinisaudade.com with tenant vinisaudade.nl, "Also request www" enabled:

vinisaudade.nl → challenge valid www.vinisaudade.nl → Invalid response … /.well-known/acme-challenge/…: 404 Certbot: "Some challenges have failed", so no certificate is issued.

Expected

Either:

  • when "Also request www" is enabled for a tenant, Ploi generates the matching www → non-www redirect block (port 80 with an ACME exception, plus port 443) for that tenant, the same as it does for sites; or
  • the option is hidden for tenants until that is supported.

Nice to have

Support aliases per tenant, the same way aliases already exist for sites.

Also request www on tenant SSL certificates fails – no www server block is generated for tenants

1 total vote
Quick Actions
Activity
View recent activity and updates
Use arrow keys to navigate