Hi, ok I think I have finally succeeded.
I tried many methods, editing conf files to redirect ssl etc all to know avail.
Then I read that creating an alias in main WPMU site in vestacp would work, to do this you need to delete the domain from vestcp if you have already created it.
ref domain =
Setup wpmu for mapping, wpmudomain.com has own IP.
Put this IP in
Code: Select all
wp-admin/network/settings.php?page=domainmapping_options
Ensure wordpress is set to use https
In vestacp edited domain wpmudomain.com
in the alias section put
Code: Select all
www.wpmudomain.com
mappeddomain1.wpmudomain.com
Now enable ssl > Lets Encrypt Support
save.
Note, i had problems if added mappeddomain.com to alias when first created ssl cert, i got nginx did not restart error and no cert created.
Once cert is created add mappeddomain.com to domain alias,
Code: Select all
www.wpmudomain.com
mappeddomain1.wpmudomain.com
mappeddomain1.com
save.
This has worked for one domain:
https://beautifulfamily.photography/
But when i setup a second domain it is not?
https://yourfamilystory.photography/
It could be I need to wait as had to delete second domain to be able to add it as an alias.
All setting look the same and both domains are coming up in alias list.
Note, if you want email for mapped domains I believe you will need to create an email domain for them in vestacp.
Note
Checking the ssl cert details on working mapped domain it shows the ss cert as belonging to:
It also shows
Code: Select all
DNS NAME wpmudomain.com
DNS NAME mappeddomain1.wpmudomain.com
DNS NAME mappeddomain1.com
It is not yet showing DNS NAME for mappeddomain2 ?
Not sure if Lets Encrypt will update this via cron sometime?
Ideally I would prefer to have own cert for each mapped domain, but this is a start.