Tried a bunch of different settings with A and CNAME records and haven’t struck gold yet.
Just wondering if somebody can give me a solid example of what DNS records should look like to get LE and multiple subdomains working.
Thanks!
Tried a bunch of different settings with A and CNAME records and haven’t struck gold yet.
Just wondering if somebody can give me a solid example of what DNS records should look like to get LE and multiple subdomains working.
Thanks!
It should be as simple as creating your A records pointing to your DO droplet’s IP, waiting for the DNS changes to propagate (key point here, this can take up to 48 hours), adding the subdomains to group_vars/production/wordpress_sites.yml
and provisioning or reprovisioning your droplet.
What part isn’t working?
I was missing the www.subdomain A record!
Future reference - A Records for Sub Domains & LE require both subdomain & www.subdomain to be added.
I have not found this to be true, but I’m glad you were able to solve your problem.
For clarity, you’re saying you added…
domain.com
www.domain.com
subdomain.domain.com
www.subdomain.domain.com
?
You added these both to your DNS host and to Trellis?
Who is your DNS host if you don’t mind my asking?
That’s right mate.
That being said my group_vars are like this which to me makes sense that the A Records would have to be like that.
wordpress_sites:
domain.com.au:
site_hosts:
- canonical: domain.com.au
redirects:
- www.domain.com.au