I have a site (mainsite.com) running php (cs-cart)
2 Week ago: add site1.com
sudo site site1.com -parked=mainsite.com
sudo site site1.com -ssl=on
ssl was created for site1.com, site1 configuration file has no ssl configuration part. I added it manually. Everything worked fine after that.
Today: add site2.com
sudo site site2.com -parked=mainsite.com
sudo site site2.com -ssl=on
Error:
[ERROR] Seems like you are trying to request an SSL Certificate for a Parked / Mapped Domain.
Please, use the '-root=domain.com' parameter to specify the main domain.
If your site is using the Reverse Proxy configuration, please use the '-root-path =/opt/app' option.
Running again:
sudo site site2.com -ssl=on -root=mainsite.com
SSL was notified successfully created.
Go to site2.com, the ssl error was caused by the certificate obtained from mainsite.com